سؤال

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

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top