WordPress.org

Ready to get started?Download WordPress

Forums

Categories won't list alphabetically (13 posts)

  1. ittyfitz
    Member
    Posted 6 years ago #

    My categories won't list alphabetically no matter what I do. I changed templates first because I'm not very good with wordpress code. Then I tried changing the tags in the sidebar code, and that didn't work. I even uploaded the ordermycategories plugin and did it manually through that, and it STILL lists them by ID. What is up with this?

    this is the site if it helps: http://eileen.likeafrog.org/

  2. Doniaa
    Member
    Posted 6 years ago #

    For what I know (and I know little)
    Category listing is ID related

    personally to easy handle the problem I installed this plugin

    http://www.geekyweekly.com/mycategoryorder

  3. Doniaa
    Member
    Posted 6 years ago #

  4. ittyfitz
    Member
    Posted 6 years ago #

    Yeah sorry, that's what I meant--that's the plugin I already tried and no dice. Thanks though.

  5. ittyfitz
    Member
    Posted 6 years ago #

    Update: here's what my code looks like.

      <?php wp_list_cats('sort_column=name&hierarchical=1'); ?>

  6. MichaelH
    Member
    Posted 6 years ago #

    Just load 2.0.10 and the default theme uses this
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>

    and it does put the categories in name order in the sidebar. It also works with hierarchical=1.

    You aren't using Widget by any chance?

  7. ittyfitz
    Member
    Posted 6 years ago #

    Hmm. Is that different from what I'm doing in a way I'm not seeing? I don't really think it's worth it for me to switch to the default theme just for this. (I'm not using Widget.) Thanks.

  8. MichaelH
    Member
    Posted 6 years ago #

    I'm not advocating a permanent switch to the default theme but just noting that it seems to work properly for me.

    But if you haven't made any changes to the default theme, you might change your theme to the default theme to see if it makes a difference.

  9. ittyfitz
    Member
    Posted 6 years ago #

    Okay, so I tried your suggestion, and in the default them (no changes), and they're still in ID order.

  10. MichaelH
    Member
    Posted 6 years ago #

    In what order are the categories in the Manage->Categories admin screen?

  11. ittyfitz
    Member
    Posted 6 years ago #

    There, they're in alphabetical order, and hierarchical.

  12. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    ittyfitz: You're editing the sidebar.php file, correct? Are you using Widgets for the sidebar by any chance? If so, then widgets replace the sidebar. Nothing you do in sidebar.php has any effect.

  13. ittyfitz
    Member
    Posted 6 years ago #

    Nope, I'm not using widgets.

Topic Closed

This topic has been closed to new replies.

About this Topic