Viewing 1 replies (of 1 total)
  • Thread Starter timhookoo

    (@timhookoo)

    I added this lto my functions.php file and it seemed to fix the error:

    function change_order($orderby, $query) {
    global $wpdb;
    if(is_archive())
    $orderby = “{$wpdb->prefix}posts.post_date ASC”;
    return $orderby;
    }
    add_filter(‘posts_orderby’,’change_order’);

Viewing 1 replies (of 1 total)
  • The topic ‘Archive page not ordered properly’ is closed to new replies.