3/12/2007
Wordpress Revision History Plugin
Editing a post is a necessity from time to time, especially with any type of coding related blog. I particularly like to keep older posts up to date with revised download links as new versions are released. This prevents a user following a link off of a search engine to an old post and downloading an old version of one of my pieces of code. Surprisingly, I could not find a Wordpress plugin to do just this. This tiny plugin allows you to attach timestamped revision tags to a post using the Wordpress metadata system.
For an example in action see the Post History heading after this post.
Installation
- Download and unzip wp_revision_history.zip
- Upload revision_history.php to your Wordpress wp-content/plugins/ directory.
- Add the following CSS to your stylesheet. Change CSS to match your site layout.
#revision-date {
padding: 3px 5px 3px 12px;
font-weight: bold;
color: #333;
}#revision {
padding: 2px 5px 8px 18px;
color: #555;}
- Add the following snippet to your template where you want a post's revision
history to display<?php if(function_exists('wp_has_history') && wp_has_history()) { ?>
<h3>Post History</h3>
<div class="cmeta" style="bottom-margin: 20px;" id="history">
<?php wp_history(); ?>
</div>
<? } ?>
Usage
To add a revision tag to a post, add a new custom field named 'history' to the post. Set the custom field's value to the revision note text. Multiple revision tags may be made to the same post by adding more custom fields with the key 'history'. Each note will be automatically timestamped. The history listing will be sorted by the timestamp value.
Download Wordpress Revision History
Popularity: 25%



May 19th, 2007 at 4:56 pm
Does it actually save each revision, or just update the page with a list of when you changed it? I want an extension or plugin that saves each revision of a posting that I create. I’ve been using Google Documents to do it, but that’s less than optimal…
May 21st, 2007 at 8:23 am
No this does not track the actual text of different versions of a post. It only allows you to timestamp and comment any changes to a post.
February 12th, 2008 at 4:16 am
I think you should save the diff file (the difference between the current and the previous file in the database) so we can revert it to an older version, just like wikis. What do you think?
I was supposed to look at that plugin when google directs me here. Typing in keyword “wordpress revision plugin”.
Do you know anything like this? Thanks in advance.
February 12th, 2008 at 10:15 am
See http://urbangiraffe.com/plugins/audit-trail/ for a plugin that keeps each revision.
February 12th, 2008 at 5:21 pm
thanks