WordPress.org

Ready to get started?Download WordPress

Forums

Custom Menu Posts Aren't In Reverse Chronological Order (2 posts)

  1. goldferris
    Member
    Posted 2 years ago #

    I use custom menus for my portfolio website: http://www.trishabartle.com/

    For some reason, all of the custom menu items, when clicked, show the posts in alphabetical order rather than reverse chronological. Anyone have any idea of what I can do to the code to change it?

    For example, if you click "News," you'll see posts from the "Updates" category, but in alphabetical order. Booooo.

  2. goldferris
    Member
    Posted 1 year ago #

    I've been doing some digging on my problem and have more information to add.

    So, I realized that my custom menus were pointing to category pages. When looking for a resolution, I looked for cat page sort stuff instead. I found a wide range of topics in these forums about using this code to change the sorting for posts:

    <?php query_posts($query_string . '&orderby=date&order=DESC') ?>

    I added that before the loop in archive.php. It didn't work. I tried it in index.php. It didn't work. So, I still have no idea why posts are sorting alphabetically instead of reverse chronological.

Topic Closed

This topic has been closed to new replies.

About this Topic