Support » Fixing WordPress » How do I alphabetize categories in my sidebar?

  • I searched for this topic and found lots of info and tried lots of things, but I couldn’t get anything to work. I am NOT a techie!

    I would appreciate it if someone could just write down the code I use, which file to put it in, and where in the file to put it. That would make my day.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Read the instructions on sorting. There are “code” examples there (just use name instead of id)…

    http://codex.wordpress.org/Template_Tags/wp_list_cats

    Thread Starter jeanne

    (@jeanne)

    I read that page earlier, but it doesn’t tell me which file to edit and where to put the code. If it does, I missed it. Also, since I am not a programmer and don’t understand the code, I still don’t know how to write what I need… Jeanne

    It’ll probably be in your sidebar.php in /wp-content/themes/your-theme/.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Once you find the line of code that lists your categories in your Sidebar Template, replace it with this:

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

    Thread Starter jeanne

    (@jeanne)

    You made my day! Thank you! Thank you! Thank you! Jeanne

    Hi there. I’ve been trying to alphabetize mine for quite a while and can’t seem to get it to work. (Mine are in a dropdown.) Would appreciate any new ideas! Thanks!

    Hilary

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I alphabetize categories in my sidebar?’ is closed to new replies.