Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.31   Updated Tuesday, July 7th, 2009 at 6:18pm

Scheduled Post Shift Plugin for WordPress

This plugin automatically takes your oldest post, and updates its timestamp so that it appears as the latest post on your WordPress site. It does this by utilizing the cron feature built into WordPress 2.1 (and newer). It can rotate all the posts on your site, or just ones in specific categories. You can currently schedule it by setting the number of hours between shifts. For example, set it to 24 hours and it will shift the oldest post every day, at the time that you enabled it. You can also choose to only shift a post if it has been more than a set number of hours since the last post.

Download

  If you have found this page useful, please consider donating. Thanks!

Instructions

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory
  • Enable the plugin
  • Configure the plugin options (under DDPostShift)
  • Click the ‘Enable Post Shift’ button to start

Disabling the Schedule

To stop the schedule, simply click the ‘Disable Post Shift’ button on the options page.

Change Log

  • 07-07-09 Version 1.31 – Added option to only shift a post if it has been a set number of hours since the last post was added.
  • 02-22-09 Version 1.3 – Updated to work better in recent WordPress versions. Log file support added, and several other updates. Can also shift posts when no drafts are available.
  • 08-28-08 Version 1.22 – A few bugs fixed. Now supports multiple category rotation.
  • 04-27-08 Version 1.21 – Updated for WordPress 2.5 and to be compatible with WP Security Scan plugin
  • 09-29-07 Version 1.2 – Updated for WordPress 2.3
  • 05-16-07 Version 1.1 – Updated for WordPress 2.2
  • 04-09-07 Version 1.0 – First release

Options

Here are the options available in this plugin’s options page in the WordPress admin panel.

Shift Delay

This is the number of hours between post shifts. The schedule will start as soon as you click the ‘Enable Post Shift’ button.

Only Shift after X Hours

If used, a post will only be shifted automatically if it has been more than this many hours since the last post was added.

Category IDs

If left blank, the plugin will operate on all of your posts. If you enter a comma-separated list of category ID’s, it will only update posts in those categories.

Log File

Full path on your server where you would like the log saved. You can leave this specific to this blog, or set up a global log for multiple blogs. Leave blank to disable this feature. Be sure to give this file write-access

Pages: « 8 7 [6] 5 4 3 2 1 » Show All

  1. Very nise info! Good luck!

  2. Why its dont work?

  3. Cool! Used in my site!

  4. Nice plugin! Thanks!

  5. When you get the version compatible with WordPress 2.9.2?

  6. a post will only be shifted automatically if it has been more than this many hours since the last post was added.

  7. Hi Admin!
    I love the plugin and have been using it for a while. It works great. I just have a quick question. Is it possible to have it only rotate posts that are a specific age, and not just the oldest? Say 1 month ago? I wouldn’t mind giving the code a GO if you can point me in the right direction :D Thanks again!

  8. Hi! Thanks again for this great plugin. I just have a simple question. If you select the categories to shift, does it also include the child categories?

  9. Thanks!! Started using it, seems to help me to rotate posts as I wanted to!!
    Thanks again!

  10. Great Plugin. Great contribution to WP community. You have money. Paypal sent.

  11. Bài vi?t r?t h?u ích. C?m ?n b?n.

  12. Bài vi?t r?t h?u ích. C?m ?n b?n.

  13. i tried add your plugin, its works ok ,, but post can be renew only once.. What should i do, to make automatic renew for all posts?

  14. Thanks for the great plugin.

    I am getting this in my error logs every time the plugin updates:

    PHP Fatal error: Call to undefined function sdp_log() in /home/mysite/public_html/wp-content/plugins/dd-scheduled-post-shift.php on line 277

    Write access does not help and if I leave the Log File option blank to disable the log feature I get this on the bottom of the page:

    Error reading log file (). Most likely you have manually removed the log file, or alternatively this could mean that the logfile is read-protected (change the rights of this file to 777)’)

    I do not need a log. Can I delete the lines of code that attempt to write to the log and what lines do I delete?

    If I knew more PHP I could figure this out myself, sorry. Everything else works great – I love this plugin!

    P.S. – Come buy a guitar from my website.

  15. Hi, the pluging thinks it is working, but I am not seeing any changes on the blog, nor id the app changing the log file – all have write ability? are you aware of any clashes with any other plugins?

Pages: « 8 7 [6] 5 4 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.