fixed the issue with posting to WP