WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP 2.04 - Categories in Alphabetical Order with Indented Children (3 posts)

  1. OrchidRed
    Member
    Posted 7 years ago #

    I can't get the categories on my sidebar to be listed in alphabetical order according to parent. I want the list to look something like this:

    Parent A (# of posts)
    --- Child (# of posts)
    --- Child (# of posts)
    Parent B (# of posts)
    --- Child (# of posts)
    --- Child (# of posts)

    This is the code I'm using, what do I need to change?


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

    Thank you for your help!

  2. Chris_K
    Member
    Posted 7 years ago #

    Here's where you find the options for wp_list_cats: http://codex.wordpress.org/Template_Tags/wp_list_cats

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

  3. OrchidRed
    Member
    Posted 7 years ago #

    That did it HandySolo! Thanks!! :)

Topic Closed

This topic has been closed to new replies.

About this Topic