[resolved] How do you Alphabetize Categories in WordPress Sidebars (2 posts)

  1. eurasiarc
    Posted 8 years ago #

    How do you alphabetize categories in WordPress 2.0.5? The chronological listing of categories in the sidebar makes for a messy blog.

    How do you get categories to alphabetize in the sidebar. What is the correct code to do this and what pages should one put this code on?

    Would the code be placed on the sidebar.php page of a template? Does anyone have a sample of a file that accomplishes this? Or is there a category.php page where the tags would be placed?

    Thanks in advance for any help with this problem.


  2. Michael Bishop

    Posted 8 years ago #

    If you are using wp_list_cats set the sort_column to name, ie, <?php wp_list_cats('sort_column=name'); />

    If you are using list_cats read through the docs on it Template_Tags/list_cats

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.