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: « 6 5 4 3 [2] 1 » Show All

  1. represent our special blog -

    http://saturn.efx2blogs.com/40354/

  2. I cannot understand what the benefit would be for activating such a wordpress plugin. Is there just an idea behind this or is there people or a person that used this with great results. Do not be afraid to share your ideas. We all need to hear… :-)

  3. I was wondering if this plugin is bad for SEO? also if I have a site map does it effect the sitemap also? Thanks for a response

  4. Thanks for the wonderful plugin. This is such a time saver!!

    I was wondering if there is a way to exclude a certain category? Thanks in advance!

  5. Feature suggestion… Rather than restrict posts to just one category, it’d be handy to be able to provide a list of category IDs from which to rotate or to provide a list of categories from which to NOT rotate.

    Very cool plug-in though!

  6. i’m using oldest2newest plugin now and it works pretty good.
    i modified it to included scheduling post in a category.

  7. did a check on the sql code and it seems that one part of it is wrong.
    it should be
    AND {$tp}posts.post_status = ‘publish’
    instead of
    AND {$tp}posts.post_status = ‘published’

    even though i have change to publish, it doesn’t work on 2.5.1 too.

  8. Doesn’t work on my site using Wordpress 2.5.1. Nothing happens.

  9. I love the plugin. I have a site that functions as an online breviary (a book of prayer). It follows a 28 day morning and evening cycle and then repeats. Your plugin is PERFECT for this.

  10. This plugin works great on one site I have, but on two others it simply refuses to rotate any posts once enabled. I believe all 3 sites are WP 2.3+ and use nearly all the same plugins.

    Any ideas on how I could begin to troubleshoot why it would work on one site, but not two others? I realize your time is scarce, any help is appreciated! =)

  11. Yes it does change it can break your links if they are date based, I am trying it with permalinks based upon categories

  12. This may be the ticket for a couple of my sites but I am curious about the URL change. My permanent link will display the date in the URL. Does this change? I would be concerned that anyone that had linked to my permalink would then have a broken link. Here is an example of the permalink for one of my sites:
    http://www.vacationspotscomments.com/2007/09/23/maui-kapalua-bay-resort/

    Note the date. Does this change as the post is recycled to the top of the list?

  13. What happens to the comments posted once its has been reposted

    Could you add a feature which excludes a certain category out of the reposting

    Its a great plugin love it, had to change my permalinks though

    Thanks

  14. I love the plugin. I have a site that functions as an online breviary (a book of prayer). It follows a 28 day morning and evening cycle and then repeats. Your plugin is PERFECT for this. Unfortunately, the RSS feed goes stale after the first cycle. In other words, those folks that have subscribed for over a month don’t get a new feed when the cycle begins anew. Any suggestions?

  15. Thomas: I may actually consider that for a future version. But yes, if you make sure to keep everything unique (plugin name, function names, option names, scheduled items, etc..) you can run more than one copy.

Pages: « 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.