WordPress.org

Ready to get started?Download WordPress

Forums

Category template not listing posts by name (6 posts)

  1. mandawahoo
    Member
    Posted 4 years ago #

    Using the following code, I am trying to get the posts to appear in alphabetical order when someone clicks on a category.

    <?php query_posts('cat=&orderby=name&order=ASC'); ?>

    It is still listing by date, however, because it is listing in reverse alphabetical order if I use ASC or DESC. Any idea why it will only list by date and not by post name?

    Any help will be greatly appreciated.

    Thanks!
    http://gibsondesignmanagement.com/reviewcenter/category/designcenters/denver/

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try orderby=title.

  3. RGlover
    Member
    Posted 4 years ago #

    Try orderby=title - that should work.

    EDIT: esmi beat me to it!

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    I'm logging off for the night now. They're all yours... ;-)

  5. mandawahoo
    Member
    Posted 4 years ago #

    Hmm, still having the same issue when I change it to title:

    http://gibsondesignmanagement.com/reviewcenter/category/all/

  6. mandawahoo
    Member
    Posted 4 years ago #

    Anyone have an idea why?

Topic Closed

This topic has been closed to new replies.

About this Topic