WordPress.org

Forums

wp_list_categories include recurse option (5 posts)

  1. lindensoftware
    Member
    Posted 8 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.

    Tim

  2. Ardenstone
    Member
    Posted 8 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,
    Chris

  3. 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
    Member
    Posted 8 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,
    Chris

  5. Ardenstone
    Member
    Posted 8 years ago #

    For those following along at home, that's:

    wp_dropdown_categories('echo=0');

    (TRUE or FALSE, not so much).

    Cheers,
    Chris

Topic Closed

This topic has been closed to new replies.

About this Topic