WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

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

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

Requires: 2.3 or higher
Compatible up to: 2.5.1
Last Updated: 2008-6-11
Downloads: 749

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.