I have some posts that I frequently update; I indicate this in the post with custom fields - if TRUE, it displays the_modified_date instead of the_date.
Now I would like to reorder my posts on the index page to reflect modified dates. Not all modified dates, but only those where the custom field is TRUE (sometimes I edit typos and broken links; I don't want those reordered).
This doesn't work because it reorders all posts. Does anyone have any suggestions?
/* reorder posts with custom field = TRUE on index page by modified date
*/
function modified_posts_custom_query() {
query_posts($query_string . '&orderby=modified');
}
add_action('thematic_above_indexloop', 'modified_posts_custom_query');