Changing date published to date modified
-
I noticed that the ordering of the posts is by date modified, out the actual posts uses the date published. This creates confusion as an older post recently updated will move to the top of the list and users question why since it is out of date order.
What do I need to do in order to change this?
I looked at line 802 in network-latest-posts.php:
$datepost = date_i18n($format, strtotime(trim( $field->post_date) ) );
I figured this could be easily changed to use the_modified_date(); but that doesn’t seem to yield any results.
I also looked at lines 330 – 350 where we order the blogs by latest updated:
$blogs = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs WHERE public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' $ignore ORDER BY last_updated DESC");
…but I can’t seem to get last_Updated to generate a date. what am I missing?
Any input would be greatly appreciated
- The topic ‘Changing date published to date modified’ is closed to new replies.