Support » Plugins » Order the posts of the main page by post_modified

Viewing 2 replies - 1 through 2 (of 2 total)
  • vbalogh

    (@vbalogh)

    I keep trying…

    If I change the lines 763 and 765 of the general-template.php
    then it works justbackwards:

    The displayed timestamps will be the date of modify,
    but the sort order goes by post_date timestamp.

    vbalogh

    (@vbalogh)

    I’ve found the solution,
    query.php line 1120 😉

    just replace the

    $q['orderby'] = 'post_date '.$q['order'];

    line with

    $q['orderby'] = 'post_modified '.$q['order'];

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order the posts of the main page by post_modified’ is closed to new replies.