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. 45
    Martin

    Using Wordpress 2.62 – plugin not working :(

  2. Dyslexia FTL. I meant 1.21.

  3. As an update, I got 2.1 to work on my WP 2.3 site. But not with the category setting…

  4. I also created http://staging.blogcrafted.com and http://staging23.blogcrafted.com to test the plugin (I was planning on making the first anyway). Staging23 runs WP 2.3…seeing if an older wordpress might work. No joy on either of those, they should be rotating every few hours in the “featured” category. As you can see, the posts are handily labeled and timestamped.

    Can you make 1.21 available? The project I want it for doesn’t need multiple category rotation and apparently it used to be working…in fact the person I’d be running it for has a non 2.6 WP anyway.

  5. Yep, no joy for me either on 2.6.3. Does nothing at all.

    Kevin
    retrovision.tv

  6. Is there anything different about 2.6.3 which might have an effect on it? I’m testing the plugin on an old blog of mine (http://madeby.mrsmicah.com) and so far no joy. I initially set them an hour apart to only rotate in 1 category. That didn’t work. Tried 1 hour apart all categories. 3 hours all categories. Nothing.

    The plugin appears to work in that I can activate it, use the interface, etc. It just doesn’t have an effect.

  7. 39
    John

    Great plugin. I’d like to get it to work in conjunction with Scheduled Draft Publish, in that it won’t post shift if there are drafts still available to publish. How’s that sound?

  8. ovidiu: If you stop using the plugin, the posts will be just as they were when you disabled it. It will not go back and change any dates.

    If you only want some posts from a category shifted, the easiest method would be to just add them to a secondary category, and just shift that one.

  9. Version 1.22 has been released

    A bug was fixed in which it was not properly checking for published posts, which would cause the plugin to not rotate posts in newer versions of WordPress.

    The plugin also now supports multiple categories. It can rotate posts from all categories, or just those you specify.

    Special thanks go to Marios for his code fixes and suggestions.

  10. 36
    ovidiu

    also it would be nice, if there was a way to stop certain posts from being recycled this way, even if they are inside the specified category, maybe using a special tag in the post or a custom field

  11. 35
    ovidiu

    just wondering what will happen if one day I decide to stop using the plugin: will all posts shift back to their original post date, or will they just remain shifted?

  12. I’m using WP 2.6, after upload the .php file, I can’t see the plugin to be activate in the plugin admin page.. Is I did anything wrong?
    Thanks..

  13. I am using a WordPress 2.3.1. It can make use of it?

  14. The re-posting doesn’t happen for me if I specify a category ID. All is good if the category ID is blank though. Any thoughts on how I can figure out what’s wrong? I’m using WordPress 2.5.1.

    Thanks!

  15. using plugin my website: http://2009.ater.com.br/

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.