Are you using this code in the sidebar? Do you have a php-exec plugin installed? Or adding it to the templates?
I have written the named Code in this file:
/wp-content/themes/hp/sidebar.php
No, I have no active plugins installed.
Can you paste the code into a pastebin? What you have should work assuming there is a cat with the ID of 1.
Which code do you mean excactly?
What you have should work assuming there is a cat with the ID of 1.
What do you mean with that?
(I am not an English native speaker)
THis code should work: <?php wp_list_categories('exclude=1&show_count=1&title_li='); ?>
It should work but it doesn’t work.
Even if I delete the line completely
<?php wp_list_categories('exclude=1&show_count=1&title_li='); ?>
the categories are there still.
Here my complete sidebar.php from /wp-content/themes/hp/sidebar.php
[Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]
Here the code in the pastebin
did you use a category widget in ‘dashboard – appearance – widgets’ ?
if, then this will show the category list, and any edits in the code of ‘wp_list_categories()’ in sidebar.php will have no effect.
one possibility is to find one of the category widget plugins, which may allow to exclude categories.
Yes I use such a widget.
I couldn’t find until now any widget, that has this function to exclude categories and is compatible to 3.0.1.
Is there no possibility to include the wp_list_categories in the theme manually?