Fixed multiple issues in wordpress exporter