What exactly do you want to be done. List the post under the category or you just want to list the categories? Maybe you could explain further.
Sorry if that wasn’t clear.
I just want to list the categories. No post, no title. Just a big, fat list of categories that display only once.
Why does your category display more than once when you call <?php wp_list_cats(); ?> ?
It just lists the categories by a factor of five. This is strange.
E.g:
A
B
A
B
A
B
A
B
A
B
In fact, everything in my loop is repeated five times. The following
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
Even this.
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
So, the words ‘Even this.’ above will just be listed in five paragraphs.
Any help would be appreciated (by a factor of five).
You don’t put it inside the loop; anywhere else is fine Also by default, the tag won’t display categories with zero post. Look up the codex.wordpress.org/Template_Tags to show all categories including the empty one.
Ah. Very cool, alphaoide.
Thank-you very much!