Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Does anyone know of a way to provide an edit history for posts in production? That is, when people look at a post, they can see that it was modified and examine a list of changes like is possible with other sites (below).

I tried looking for a way but everything I found referred to revision histories in the dashboard, not the public-facing side.




Figure 1: StackExchange

StackExchange edit history function

Figure 2: TV.com

TV.com edit history function

Figure 3: Facebook

Facebook edit history function

share|improve this question
1  
Try to focus your question on more specific approach, good candidate would be how to expose revision history on front end. In current form it's too close to plugin recommendation and such are not in scope of this site. –  Rarst May 20 '13 at 20:36
    
Except that there are no plugins to do this, so it’s not a plugin recommendation question. –  Synetech May 21 '13 at 4:50
add comment

1 Answer 1

you can grab revisions from wpdb with smth like

$revisions = $wpdb->get_results("select * from {$wpdb->posts} where post_parent={$post_id} and post_type='revision'")

after selecting a revision you could use some js diff tool like

http://cemerick.github.io/jsdifflib/demo.html

share|improve this answer
    
Thanks for the suggestion, I’ll try whipping up an implementation. –  Synetech May 21 '13 at 5:01
    
Sure, that you need a custom query for that? Hm? :) –  kaiser May 21 '13 at 8:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.