All Wordpress scheduled posts are being published immediately

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

Topic scheduled-posts posts Wordpress

Category Web


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!


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.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.