I believe the categories parameter is only used internally during recursion and cannot be supplied by the user. Am I wrong? --MDAWaffe 04:04, 4 Feb 2005 (GMT)
Also recurse is backward. 0 echoes (and is default), 1 returns. --MDAWaffe
:)
I'll fix recurse. The categories parameter is used only when the function calls itself in order to do the hierarchical magic. It doesn't take simple arrays, it takes complicated $wpdb->get_results objects. I'll say something about that on the page, but you might want to edit it later if it's unintelligible or pointless to include. --MDAWaffeI don't know if this or wp_list-cats is the right one to use, but either way, we really need some more examples on this tag. Examples of including and excluding categories, dealing with "children", and so on. Lorelle 02:54, 22 Feb 2005 (GMT)
Okay, what's the difference and which is better: wp_list_cats or list_cats? Will one be deprecated? Why do we have the two? Lorelle 22:36, 5 Mar 2005 (UTC)
I discovered that I could get wp_list_cats to display feed URLs (feed=xml), but I could not do so for list_cats, so for me wp_list_cats is better.Luhmann 21:03, 20 Mar 2005 (UTC)
I think this is a great place to put this info, Kaf. Can we put it above Parameters as it is applicable to the most basic use before you get to the specific customization? Lorelle 16:46, 22 Mar 2005 (UTC)
You are a star! And consider "emotionally" - the panic in a user as they scramble to figure out how to use the tag. ;-) Lorelle 05:13, 23 Mar 2005 (UTC)
Hi, new to WP, just getting my bearings. Needed to use this tag and found that if it had been given to me int he following notation it would have saved me a headache ;)
list_cats( FALSE, // optionall , // 'all' 'ID', // 'sort_column' 'asc', // 'sort_order' , // 'file' FALSE, // list FALSE, // optiondates FALSE, // optioncount FALSE, // hide_empty TRUE, // use_desc_for_title FALSE, // children FALSE, // child_of , // 'categories' FALSE, // recurse , // 'feed' , // 'feed_img' '1,33', // 'exclude' TRUE // hierarchical );
Cheers. :) User:Bupoc
<?php list_cats(1, 'all', 'name','asc', , 1, 0,1, 1, 0,1, 1,'Categories',0,'feed','feed_img','exclude',0); ?>