WordPress.org

Support

Support » How-To and Troubleshooting » How to display a list of revisions on the displayed post (not in admin/edit ui)?

How to display a list of revisions on the displayed post (not in admin/edit ui)?

  • I’m using WordPress (WPMU) with several professors who are having students post and comment as part of their class activities.

    They’d like to be able to see at a glance what the revision history is for a post, without having to gain admin access to the blog to view the edit interface for the post.

    Is there a way I can add an audit trail for revision history on a post as it’s displayed on a blog? Something like a footer or popup with a list of edits (times, dates, authors, links to view the revision…)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    Look closer at the wp_list_post_revisions() function.

    Thanks! That’s exactly what I needed. I’ve hacked in the display for a test theme, and am now working on building a simple plugin that can display that info on any theme.

    OK. I’ve written a VERY simple plugin that uses a Filter to process the $content for a post and append the revisions list. I had to copy the wp_list_post_revisions() function and modify it, because the “real” function just dumps the list via echo, rather than returning a string for display.

    Now to see if I can submit my hacked plugin to WordPress.org/extend/plugins…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display a list of revisions on the displayed post (not in admin/edit ui)?’ is closed to new replies.