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.

Post Version Control

Automatic version control for posts with the same prefix in the post_name

Usage

First thing you should do is visit the plugin's options page ("Settings" -> "Post Version Control").

There you will find two fields:

  1. The keyword list field, where you enter all the keywords you want to track seperated from each other by a comma and a space ", ". Each of them defines a different version control group.

  2. The path for the latest posts URL. By default the path is "/current". So if we have a keyword named "ajax" the URL: http://www.myblogaddress.com/current/ajax will point to the latest post of the "ajax" group.

To link a post to a version control group of posts all you need to do is enter the keyword of that group as a prefix to the post_name of that post. So in the group "ajax" mentioned earlier all posts in that group should start with the "ajax-" prefix. An example list of that group of posts might be:

  1. ajax-first-post
  2. ajax-updated-version
  3. ajax-latest-news

..and so on.

The plugin will automatically look through your posts of the same group and label the older ones by inserting an <!-- outdated --> tag. This is replaced by the content of "outdated.html" in runtime. This is an example of how you can style your outdated tag. Just insert it along with your other styles:

<style>

p.outdated{ border: dashed 1px #f00; background: #eee; color: #f00; text-align: center; }

p.outdated a { color: #f00; }

</style>

Uninstalling should be pretty easy too. The only left overs are the <!-- outdated: ... --> comments in the old posts content which of course are ignored when viewing the webpage. If you don't mind that you don't have to do anything else apart from de-activating the plugin through your WordPress administration.

License

This work is released under the terms of the GNU General Public License: http://www.gnu.org/licenses/gpl-2.0.txt

Requires: 2.5 or higher
Compatible up to: 2.5.1
Last Updated: 2008-5-16
Downloads: 973

Ratings

5 stars
5 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.