In wordpress there are 2 order situations by date:
– first publish date
– edit publish date
We use order by first publish date and edit date is not considered.
So default order will consider the first publish date.
The technical solution is to modify the query orderby, but it’s sensitive when working with custom order as well, so it cannot be added to core at this moment.
But if you wish, we can guide you to look for the following function that controls this custom query – wpestate_my_order and then modify it according to WordPress query rules – http://codex.wordpress.org/Class_Reference/WP_Query
What you need is
orderby (string | array)
- ‘modified‘ – Order by last modified date.
—
—
Query is set in WP Residence in help_functions.php
/////////////////////////////////////////////////////////////////////////////////
// order by filter featured
///////////////////////////////////////////////////////////////////////////////////
if( !function_exists('wpestate_my_order') ):
function wpestate_my_order($orderby) {
global $wpdb;
global $table_prefix;
$orderby = $table_prefix.'postmeta.meta_value DESC, '.$table_prefix.'posts.ID DESC';
return $orderby;
}
endif; // end wpestate_my_order
—
It is possible to add ORDER by modified, by but you need to do code changes in a lot of places . If you are not skilled at coding you should hire someone since a bad code added on this area can have major impact.
You have to add new order by way
should by ‘order_by’ =>’modified’
For ex in property_list.php you have this switch/ case code http://prntscr.com/gl1sff .
You should add a new branch that look like
case 10:
$meta_order=”;
$meta_directions=’DESC’;
$order_by=’modified’;
break;