Posting 4 to 5 posts at a time
-
I have set autopost to post 1 post at a time beteen interval, but 4 to 5 posts are getting published
-
Check your cron schedule.
If WordPress has multiple events, try disabled, enabling it again to reset.I checked corn job in my cpanel and theres no corn jobs listed there
WordPress uses Wp-Cron by default. Search for a cron viewer/manager plugin.
These are the cron listed-
screenshot- https://prnt.sc/e65ua1
I’m not seeing the hook for APS. Did you disable it?
oh had disabled APS in the last screenshot, herre is an updated one-
https://prnt.sc/e6ch4janother screenshot with details of cron job- https://prnt.sc/e6cmnt
Below is the copy of debug file content-
2017-02-09 13:14:18 Auto Post Scheduler Log file cleared 2017-02-09 13:14:21 - Auto Post Scheduler Enabled! 2017-02-09 13:14:27 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:14:27 - DEBUG: found 1 results. 2017-02-09 13:14:27 - DEBUG: processing post draft 2 2017-02-09 13:14:27 - DEBUG: wp_update_post Array ( [ID] => 5202 [post_status] => publish [post_date_gmt] => 2017-02-09 13:14:27 [post_date] => 2017-02-09 13:14:27 ) 2017-02-09 13:14:29 - draft POST id 5202 PUBLISHED : 'draft 2' 2017-02-09 13:15:38 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:15:39 - DEBUG: found 1 results. 2017-02-09 13:15:39 - DEBUG: processing post draft 1 2017-02-09 13:15:39 - DEBUG: wp_update_post Array ( [ID] => 5198 [post_status] => publish [post_date_gmt] => 2017-02-09 13:15:39 [post_date] => 2017-02-09 13:15:39 ) 2017-02-09 13:15:39 - draft POST id 5198 PUBLISHED : 'draft 1' 2017-02-09 13:15:39 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:15:39 - DEBUG: found 1 results. 2017-02-09 13:15:39 - DEBUG: processing post draft 1 2017-02-09 13:15:39 - DEBUG: wp_update_post Array ( [ID] => 5200 [post_status] => publish [post_date_gmt] => 2017-02-09 13:15:39 [post_date] => 2017-02-09 13:15:39 ) 2017-02-09 13:15:39 - draft POST id 5200 PUBLISHED : 'draft 1' 2017-02-09 13:15:54 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:15:54 - DEBUG: found 1 results. 2017-02-09 13:15:54 - DEBUG: processing post draft 5 2017-02-09 13:15:54 - DEBUG: wp_update_post Array ( [ID] => 5208 [post_status] => publish [post_date_gmt] => 2017-02-09 13:15:54 [post_date] => 2017-02-09 13:15:54 ) 2017-02-09 13:15:54 - draft POST id 5208 PUBLISHED : 'draft 5' 2017-02-09 13:15:54 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:15:54 - DEBUG: found 1 results. 2017-02-09 13:15:54 - DEBUG: processing post draft 5 2017-02-09 13:15:54 - DEBUG: wp_update_post Array ( [ID] => 5206 [post_status] => publish [post_date_gmt] => 2017-02-09 13:15:54 [post_date] => 2017-02-09 13:15:54 ) 2017-02-09 13:15:54 - draft POST id 5206 PUBLISHED : 'draft 5' 2017-02-09 13:16:09 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:16:09 - DEBUG: found 1 results. 2017-02-09 13:16:09 - DEBUG: processing post draft 3 2017-02-09 13:16:09 - DEBUG: wp_update_post Array ( [ID] => 5204 [post_status] => publish [post_date_gmt] => 2017-02-09 13:16:09 [post_date] => 2017-02-09 13:16:09 ) 2017-02-09 13:16:09 - draft POST id 5204 PUBLISHED : 'draft 3' 2017-02-09 13:16:10 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:16:10 - DEBUG: found 0 results. 2017-02-09 13:16:10 - Unable to find eligible posts to publish. 2017-02-09 13:16:15 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:16:15 - DEBUG: found 0 results. 2017-02-09 13:16:15 - Unable to find eligible posts to publish. 2017-02-09 13:16:17 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:16:17 - DEBUG: found 0 results. 2017-02-09 13:16:17 - Unable to find eligible posts to publish. 2017-02-09 13:16:20 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 1 [cat] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft [1] => pending ) [order] => ASC [orderby] => rand ) 2017-02-09 13:16:20 - DEBUG: found 0 results. 2017-02-09 13:16:20 - Unable to find eligible posts to publish. 2017-02-09 13:16:20 - Auto Post Scheduler Disabled!
It looks like you have the Cron event firing sequentially.
What are your settings for the Auto Post Schedule?I have set APS, Auto Post Schedule option to 66-126 seconds
screenshot of my APS settings – https://prnt.sc/e6ldlcYou should watch your WP cron jobs to see if WordPress creates multiple events for the hook. This might happen on shared or low-resource servers where the database lock is too slow to prevent an event from launching multiple times. Other than that I don’t see anything.
oh actually im on a cloud host from siteground, has 2 cpus cores and 2 gb ram.. strange not sure whats happenning…
wp-config.php file was missing closing tag “?>” adding closing tag solved it
- This reply was modified 7 years, 9 months ago by ashirwad.
- The topic ‘Posting 4 to 5 posts at a time’ is closed to new replies.