old_post_date

If post_date changes, chronological permalinks which contain parts of the old date will automatically redirect to the
new permalink. Works along with

Author:Weston Ruter (profile at wordpress.org)
WordPress version required:2.3
WordPress version tested:2.5.1
Plugin version:1.0.3
Added to WordPress repository:23-02-2008
Last updated:11-06-2008
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://wordpress.org/extend/plugins/old-post-...
Total downloads:1 237
plugin download
Click to start download

Notice: This plugin is not being actively maintained. Other priorities have arisen which have forced development to discontinue. Being open source and free, you are of course free to take the code and improve upon it; if you are a developer and would like to be added as a commiter to this plugin, please contact me.

Just as the core WordPress functionality now keeps track of old post slugs and redirects visitors to proper permalink, this plugin does the same thing for the post_date. Whenever a post is saved and the post_date is changed, a new post meta entry with the key 'old_post_date' is inserted with the value of the new post_date. When a visitor gets a 404 from a permalink that contains chronology, this plugin looks up the post meta for an old_post_date that matches their request; if multiple matches are found, then it narrows down the results by looking at the requested post slug in both post_name and then in _old_post_slug. Finally, the user is redirected to the permalink for the found post, which should be the post they originally requested.

Upon activation, this plugin creates a new old_post_date post meta entry corresponding to each post's current post_date.

If you value this plugin, please donate to ensure that it may continue to be maintained and improved.

Changelog

2008-06-06: 1.0.3

  • Not saving old post_date if the post has draft status

2008-06-06: 1.0.2

  • Using permanent (302) redirects instead of temporary (301) ones

2008-02-24: 1.0.1

  • Now accounting for when there are no matching old post dates