Jellelle
Member
Posted 5 months ago #
Hi all
I want to modify the wp_list_categories(); a bit
I have an array 'category_ID' which contains the ID's of a category I want to include. But how the hell do you do that? :D
This doesn't work of course, but you get the drift :)
wp_list_categories( 'include=category_ID[0]' );
Cheers,
Jelle
Assuming $category is the array of ids
$args = array('include' => $category);
wp_list_categories($args);
Jellelle
Member
Posted 5 months ago #
Great, I'm getting it!
Know how I still can add '&title_li='?
Need to go to work, will take a look tonight
Cheers :)
$args = array(
'include' => $category,
'title_li' =>''
);
Jellelle
Member
Posted 5 months ago #
My prayers have been answered!
Thanks!