• Resolved tonygthomas

    (@tonygthomas)


    Hi all,

    I can’t seem to get my category lists to sort by name.

    I’ve tried the following three configurations with no success:

    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 0, 1, 1, 1, 0,'','','','','') ?>

    <?php list_cats(FALSE, '', 'name'); ?>

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

    Any ideas on what’s going on?

Viewing 4 replies - 1 through 4 (of 4 total)
  • This from the wp-content/themes/default/sidebar.php works as expected.

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

    ********************
    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!
    ********************

    Thread Starter tonygthomas

    (@tonygthomas)

    That didn’t work either. Is this something that could be affected by having an older version of WP? I thought I was successful when I last upgraded to 1.5.2, but perhaps I missed something.

    According to your source code you are using 1.5! Yes, the category list function in that version had some bugs.
    Upgrade to 1.5.2 = the latest stable.

    Thread Starter tonygthomas

    (@tonygthomas)

    Ah! That did it. Sorry. I’m running several WP sites and I thought I’d upgraded all of them.

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sorting category lists’ is closed to new replies.