theunionsound
Member
Posted 7 months ago #
I was wondering if there is a way to display posts on your blog by the date it was last updated instead of when it was initially posted.
ex: posted a property initially on 2-1-10 but updated it today. How can i have it show up as the first post instead of on page 10 from last year?
Thank you in advance for any help on this topic.
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
you could try to add a query before the loop (in index.php ? of your theme);
for example:
<?php global $query_string;
query_posts( $query_string . '&orderby=modified&order=DESC'); ?>
http://codex.wordpress.org/Function_Reference/query_posts#Usage_Note