Question

I am creating a kind of Wiki using Wordpress. How do I show my users the latest change/revision of all articles?

It should be something like this, but much simpler: I only need the name of the article and the person who made the change

Was it helpful?

Solution

Try this one, hope it is helpful:

Put this code at starting of your template.

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

$postData = query_posts('category_name='.$slug.'&post_status=publish,future&showposts=5&paged='.$paged.'&orderby=modified');

Thanks.

OTHER TIPS

Or try with this links:

[For working with modified date] : http://codex.wordpress.org/Template_Tags/the_modified_date

[For working with modified time] : http://codex.wordpress.org/Template_Tags/the_modified_time

Thanks.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top