In my Wordpress I have many categories and I need to show a list of categories (with number of posts) that have the same posts in common with one special category (that is excluded from the same list). :)
I want to use wp_list_categories function. The special category is 86832.
I'm not a programmer and i think i have to add something like this
'include' => array (ALL) AND array( 86832 ),
to the code:
<?php
wp_list_categories( array(
'show_count' => true,
'orderby' => 'name',
'order' => 'ASC',
'number' => 53,
'hierarchical' => false,
'exclude' => array( 86832, 48, 3 ),
'title_li' => ''
) );?>
But it's not work :)
And, above all, I need to show the number of posts included in every category :)
I try to explain better with this simple example.
My original category list is: Barcelona, Food, Madrid, Valencia, Sevilla.
The post "Hello World" is INCLUDED in
Categories: Food, Madrid
and is NOT INCLUDED in
Categories: Barcelona, Sevilla, Valencia
My category list must be: Madrid
Anybody can help me? Thanks in advance for every answer.