Title: Not publishing from API generated posts?
Last modified: January 14, 2025

---

# Not publishing from API generated posts?

 *  [axyl](https://wordpress.org/support/users/axyl/)
 * (@axyl)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-publishing-from-api-generated-posts/)
 * I’m sure that this has worked in the past, but now when I use the WordPress API
   to create and publish a post, nothing gets shared.
 * If I manually create a post, then it works.
 * Is this a regression?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-publishing-from-api-generated-posts/#post-18244615)
 * The issue may relate to the Auto Publish on Creating Posts/Pages/Custom Post 
   Types setting. Please ensure it’s set to Use Metabox Settings to ensure sharing
   functions correctly for API-created posts.
   Please let us know, if the issue persists.
 *  Thread Starter [axyl](https://wordpress.org/support/users/axyl/)
 * (@axyl)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-publishing-from-api-generated-posts/#post-18246644)
 * Hi, that setting is definitely turned on. These aren’t custom posts, just regular
   ones, but it’s all being done through the API to create and publish the posts.
 * If I look at one of the posts in the back end, the metabox settings show no. 
   Is there a way to change that to yes by default?
 *  [aiswaryaxyzscripts](https://wordpress.org/support/users/aiswaryaxyzscripts/)
 * (@aiswaryaxyzscripts)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/not-publishing-from-api-generated-posts/#post-18246799)
 * Hi,
   If you set “Auto Publish on Creating Posts/Pages/Custom Post Types” to “Use
   Metabox Settings,” the default will be “Yes” when adding new posts.To apply this
   behavior to already published posts, you must also set “Auto Publish on Editing
   Posts/Pages/Custom Post Types” to “Use Metabox Settings.”This ensures that SMAP
   always follows the Metabox settings you have assigned.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Not publishing from API generated posts?’ is closed to new replies.

 * ![](https://ps.w.org/social-media-auto-publish/assets/icon-128x128.png?rev=1790483)
 * [Social Media Auto Publish](https://wordpress.org/plugins/social-media-auto-publish/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-media-auto-publish/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-media-auto-publish/)
 * [Active Topics](https://wordpress.org/support/plugin/social-media-auto-publish/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-media-auto-publish/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-media-auto-publish/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [aiswaryaxyzscripts](https://wordpress.org/support/users/aiswaryaxyzscripts/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/not-publishing-from-api-generated-posts/#post-18246799)
 * Status: not resolved