WordPress.org

Ready to get started?Download WordPress

Forums

Unable to put Categories in alphabetical order (4 posts)

  1. jfmurphy6
    Member
    Posted 5 years ago #

    I have tried for the past few hours to figure out how to have my categories show up in alphabetical order instead of chronological order. I've read through lots of documentation and posts here, but can't get it to work.

    I have my blog hosted with Yahoo! and am running 2.0.2 according to my site at http://www.MedinaReport.com

    Ideally I'd like to have the categories show up in alphabetical order but also have the number of posts displayed as well which is what I was trying to do below.

      <?php wp_list_categories('orderby=name&show_count=1'); ?>

    Thanks for your help!

  2. That's because you're using WP 2.0.11 (or 2.0.2). wp_list_categories wasn't introduced until WP 2.1

    If upgrading is out of the picture (yes, I advocate it for security reasons), you're stuck with wp_list_cats and list_cats. At a guess, try this:
    wp_list_cats('sort_column=name');

  3. jfmurphy6
    Member
    Posted 5 years ago #

    Thank you Ipstenu. I did not mark my WordPress version correctly. I do have 2.0.2 which is served up by Yahoo. I just tried your fix but that didn't do it either. Thanks for trying to help me out.

  4. You'd have to try list_cats, then.

    See List_Cats and wp_list_cats, but FYI, you're using a way old version of WP.

Topic Closed

This topic has been closed to new replies.

About this Topic