Publish scheduled pages right away in WordPress

I would do this with wp-cli. It’s a one line command: $ wp post update $(wp post list –post_status=draft –post_type=page –format=ids) –post_status=publish This command lists all pages that are draft (by id) and then updates all their statuses to “publish”. This is of course if these are actually pages. If it’s posts, you just need … Read more

Does WordPress provide an API for scheduling posts?

There isn’t really an API for it, because from usage perspective it is quite simple. If data passed to wp_insert_post() has publish or future value in post_status field and date in the future then it is inserted in database with that date and future in post_status. Effectively it is already considered scheduled. However something would … Read more

“Missed schedule” posting bug

You don’t really need a Plugin to define these type of cronjobs in a timely manner. All you need to do is to reliably call the WordPress Cron file which is wp-cron.php The question is if your Webhost allows you to start wget without any path command or if it’s allowed to start it anyway. … Read more

How to fix missing function in wp-cron?

You can also disable the auto wp-cron from loading and setup a manual cron job on your server. Add the following line to your Wp-config.php define(‘DISABLE_WP_CRON’, true); and then on your server/control panel create a cron job to run the following: wget http://www.yourdomain.com/wp-cron.php > /dev/null 2>&1 I run mine every 5 minutes.