Ready to get started?Download WordPress


wp_list_categories include recurse option (5 posts)

  1. lindensoftware
    Posted 7 years ago #

    Hello All

    I am using a plugin, catcloud, it makes a tag cloud out of the categories. The problem is when I upgraded to 2.1, the list_cats function is depreciated, and using wp_list_categories instead echo's the output.

    list_cats had the recurse option, whereas wp_list_categories does not.

    I personally can edit the script for my own use, but I know many cannot so it would be great if the simple option was added back.


  2. Ardenstone
    Posted 7 years ago #

    I have a similar problem in that I need to get a list of categories and then manipulate it before printing it back out to the sidebar. Is there another replacement for list_cats?

    Tim, how are you hacking the script so that it works? I'm new at this, so feel like I'm just missing something obvious.

    Thank you,

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    wp_list_categories, like wp_list_bookmarks, is new and lacks a few features that it should have. One of those features should be the "echo" parameter, IMO. wp_dropdown_cats has it, and it should be added to wp_list_categories as well.

    This is basically the equivalent of list_cats seemingly misnamed "recurse" option.

  4. Ardenstone
    Posted 7 years ago #

    Awesome, thanks for the info! Good to know I might be able to just hack wp_dropdown_cats for now.

    Oh, and "echo" makes a ton more sense than "recurse." :)

    Thanks again,

  5. Ardenstone
    Posted 7 years ago #

    For those following along at home, that's:


    (TRUE or FALSE, not so much).


Topic Closed

This topic has been closed to new replies.

About this Topic