• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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.

    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

    For those following along at home, that’s:

    wp_dropdown_categories(‘echo=0’);

    (TRUE or FALSE, not so much).

    Cheers,
    Chris

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_list_categories include recurse option’ is closed to new replies.