after re-reading this question I thought it might sound confusing.
To make it easy to explain,
I want to list all the posts in a category.
Just say there are 3 posts in category 'animals'
Now, with each of the 3 posts in 'animals' category, i want to show what categories they are associated with.
So, the first post in the 'animals' category might have 'dogs' and 'fish' associated with it.
and the second post might have the 'fish' 'birds' and 'insects' category associated with it.
so it would look like
Post title 1
- dogs category
- fish category
Post title 3
- fish category
- birds category
- insect category
post title 4
- birds category
- dog category
At the moment my code looks like:
<? query_posts('cat=5&order=DESC');
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<p class="whosrunning"><?php the_title(); ?></p>
<? wp_list_cats('child_of=9');
endwhile; else:
echo "No members have events coming up at the moment";
endif;
?>
which lists all posts in the 'animals' category but unfortunately lists out all the categories which are children of animals.
what i want to happen is for the loop to look at each post individually and only show the categories that that particular post is associated with and then look at the next post etc etc.
Thank you for you time
James