Category list – says No Categories
-
Hi
I have a test site set up here:
https://stargate-brats.net/labtest/and I am trying to get a list of categories in my sidebar. But everytime I put the code in I get “no categories” when there are categories! I have about 10 categories in the admin panel. 6 are top level, and 4 are sub-categories. I’ve made three test posts in three seperate categories to try and get something to show up.
this code:
<?php wp_list_cats('sort_column=name&optioncount=1'); ?>
displays a list, but only of cats that are not empty. I want to display all top level categories.so, I looked up the code and I tried it and it didnt work. So I tried each of these in an attempt to just get -anything- to show up:
<?php wp_list_cats('children=1&sort_column=name'); ?>
<?php wp_list_cats('sort_column=name&hid?- e_empty=0'); ?>
<?php list_cats(0, 'All', 'name'); ?>
<?php list_cats(0,'','name','','',true,0,1,1,1); ?>
<?php wp_list_cats('all'); ?>
<?php list_cats(); ?><form action="<?php echo $PHP_SELF ?>" method="get">
<?php dropdown_cats(); ?>
<input type="submit" name="submit" value="view" />
</form>and none of them work. the dropdown one has 5 cats, but they seem to be random ones. the others all say “no categories” and you can see that on my site. In the menu, the cats that are displayed ok, are the ones from the first code, that works.. but all the others are the ones saying “no categories” (I left each peice of code in, and tried them seperatly and it didnt work either way. Ive left them all in now so you can see that none of them are working)
so can anyone tell me what I am doing wrong?
- The topic ‘Category list – says No Categories’ is closed to new replies.