if you are using wp_list_categories to show the categories
http://codex.wordpress.org/Function_Reference/wp_list_categories
its done with the hide_empty parameter set to 0
Thanks a lot. Sound like what I need.
But I don’t know much about what to edit and where and how.
Any suggestions?
JH
it’s hard for me to give exact direction without seeing code.
Take a look in your header.php file. See if there is any code for navigation or nav stuff, look for wp_list_pages, and wp_list_categories
if you get stumped, paste your code here
http://wordpress.pastebin.com
and report a link back
ok, I looked in category-template.php in the wp-includes folder and I see this code – which I have changed to “0” and “true”.
function wp_dropdown_categories( $args = '' ) {
$defaults = array(
'show_option_all' => '', 'show_option_none' => '',
'orderby' => 'id', 'order' => 'ASC',
'show_last_update' => 0, 'show_count' => 0,
'hide_empty' => 0, 'child_of' => 0,
'exclude' => '', 'echo' => 1,
'selected' => 0, 'hierarchical' => 0,
'name' => 'cat', 'id' => '',
'class' => 'postform', 'depth' => 0,
'tab_index' => 0, 'taxonomy' => 'category',
'hide_if_empty' => true
);
Here’s what I found in the header.php file with reagrds to the wp_list_categories
[Code moderated as per the Forum Rules. Please use the pastebin]