Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4265

    Hello,

    My blog is sorting ascending by the date – so the oldest are appearing first.

    The newest should appear at the top..

    Is was working fine before but perhaps a recent wordpress update has messed with something

    Do you know what the problem could be.

    Cheers.

    Adam

    #45661

    Hey,

    I don’t know why WordPress would change the order of posts by itself, that’s not what I would consider normal behaviour.

    Firstly, disable any plugins you have active to eliminate any bugs caused by a conflict somewhere. If this doesn’t make a difference, and assuming you’ve not changed any template files anywhere you need to modify the query string to sort descending to fix this.

    Open up template_blog.php and around line 11 change this code:

    $query_string = "cat=".$negative_cats."&paged=$paged";

    to this:

    $query_string = "cat=".$negative_cats."&paged=$paged&orderby=DSC";

    James

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Blog is sorting ascending not descending’ is closed to new replies.