Support » Fixing WordPress » Sorting categories by name using <?php wp_list_cats(‘arguments’); ?>

  • I am using the following template to list my categories on my archive page:

    <?php wp_list_cats(‘arguments’); ?>

    The problem is, I can’t get the categories to sort by alphabetical order, no matter what I do.

    Can anyone offer any suggestions??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Btw, this is my current tag:

    <?php wp_list_cats(‘sort_order=1&optioncount=1&exclude=0&list=0&sort_column=name’); ?>

    I still cannot get the Category archive list to sort alphabetically.

    Any help would be greatly appreciated!

    If sort_order=name does not work, upgrade to current version

    Follow Beel’s advice. You’ve run into a bug in (wp_)list_cats.

    I use this :

    ‘<?php list_cats(FALSE, ‘ ‘, ‘name’); ?>’

    Works OK for me.

    You removed the “leave this for stats” line for WP but I am willing to bet you have the latest version. Bet if you downgrade it won’t work OK 😉

    Thanks Boyle. I just spent the afternoon trying every other hack there is. <?php list_cats(FALSE, ‘ ‘, ‘name’); ?> is the winning ticket for 5.1.2.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sorting categories by name using <?php wp_list_cats(‘arguments’); ?>’ is closed to new replies.