WP Cron vs Real Cron Jobs

WordPress has a feature called WP-Cron, which can be used to schedule posts. While WP-Cron can be useful it is not as powerful as a real cron job. This guide will show you how to set up a real cron job to make posts to your WordPress blog.

Disable WP-Cron

The wp-config.php file can be found in the same directory your WordPress is installed to. Edit the file and add this line to the top of the page:

define('DISABLE_WP_Cron', true);

Setting Up the Cron Job

  1. In your cPanel account, select the "Advanced" section, then select "Cron Jobs".
  2. Under "Add New Cron Job", select the interval the cron job will be set up on. To reduce server load, we suggest you set the interval no shorter than 15 minutes.
  3. Enter the following code for the cron command. Be sure to replace the domain with your actual domain.
    wget -q -o - http://yourdomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
  4. Select "Add New Cron" to finalize.

The server will now run wp-cron using wget. The wp-cron.php scrip will do what you want it to do one your schedule now, rather than on page loads.

  • 15 Users Found This Useful
Was this answer helpful?

Related Articles

How to make WordPress show as Secure in Google Chrome

In order to make your WordPress installation show as Secure in Google Chrome, you'll need ensure...

Temporary URLs in WordPress

To use your Temporary URL with a WordPress installation, you will need to edit the Windows Hosts...

WordPress Optimization

Optimizing your scripts can keep your server and website loading quickly for your visitors. These...

Changing the WordPress Directory

You may want to change the location of your WordPress blog after you have installed it. For...

Fixing the Internal Server Error in WordPress

There are a few possible causes of the 500 Internal Server Error. It is not always due to...