All Wordpress scheduled posts are being published immediately

admin2025-01-07  3

I am having a problem when creating scheduled posts. I create the posts as normal, click edit, set a scheduled time and click ok then the shedual button. Soon as i do this i check the website and the post has been published immediately. I looked back in the view all posts page and the post says its still scheduled. It was working fine for months but suddenly this is occurring. Really need this sorting asap! cheers

I am having a problem when creating scheduled posts. I create the posts as normal, click edit, set a scheduled time and click ok then the shedual button. Soon as i do this i check the website and the post has been published immediately. I looked back in the view all posts page and the post says its still scheduled. It was working fine for months but suddenly this is occurring. Really need this sorting asap! cheers

Share Improve this question asked Jul 25, 2017 at 12:40 TomPo101TomPo101 135 bronze badges 4
  • You can view scheduled posts as if they were public if you're logged in, but they won't appear in archives. Where are you seeing the published post? On the main blog page? – Jacob Peattie Commented Jul 25, 2017 at 12:47
  • The site is just one page. So i think it must be. Not sure if its anything to do with being logged in. I can view the site from another computer and the post is still published. – TomPo101 Commented Jul 25, 2017 at 13:02
  • Try installing a plugin called WP-Crontrol which basically will help you debug WP-Cron and add more details to your question. – user170297 Commented Jul 25, 2017 at 13:07
  • I installed it and i can see the cron event for the scheduled post. The date is correct and the post still says its scheduled on the posts page. But the post is still viewable on the website. – TomPo101 Commented Jul 25, 2017 at 14:09
Add a comment  | 

2 Answers 2

Reset to default 0

I'd check to make sure that the scheduled time is actually in the future - date and time. And check the time offset settings on your site are set to the proper time zone.

Ok i managed to fix it. I added 'post_status' => 'publish' to my WP-Query args in the loop and it seems to have solved it. Really bizarre that its been working for months without this argument. Wonder if one of you clever people has a clue to whats happening? cos im baffled!

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736256587a372.html

最新回复(0)