How to show Categories?
-
I’m trying to get the list of Categories to display in the Categories widget.
I’m developing this site locally on my laptop… Apache, MySQL, PHP 5.
I found a post here on this forum suggesting I could edit this line found in the header.php file…<?php wp_list_categories('title_li=&exclude=' . $GLOBALS[asides_id]) ?>
The suggestion was that it should be changed to this…
<?php wp_list_categories('title_li=&exclude=&hide_empty=0' . $GLOBALS[asides_id]) ?>
However there no such line in header.php in fact no “wp_list_categories…”
The only place I find any such line is in sidebar.php and sidebar2.php. and those lines read as so…<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
Apparently in the above mentioned suggestion the edit used the addition of this bit…
&hide_empty=0
And presumably that will cause WP to display all the Categories I’ve created, regardless of whether or not they have any content i.e. “post”. In other words, empty categories.
- The topic ‘How to show Categories?’ is closed to new replies.