This is exatly what I am looking for. Excellent! Thank you. I do have a question though.
I am posting recipies and I needed the child/sub cats to appear under the post. (I am running WP 2.5) The above works to a point.
Here is an example of what I am attempting.
When viewing the "Cookie Recipes" descriptive parent cat post I have the links to each cookie recipe beneath the welcoming post.
Cookies
Chocolate
Raisin
etc...
But I do NOT want the parent "Cookies" to appear.
Also, when I am viewing the individual recipes I want the others listed BUT NOT the current child/sub cat being displayed. (or the parent)
So when I am in the Chocolate Cookie recipe I have the link to the other children of Cookies underneath that recipe post BUT NOT the current Chocolate Cookie permalink.
I am used to PERL a bit and using unless but, this one has got me stuck.
in the foreach loop
unless (currentcat == oneintheforeach ) {
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
}
I am using this in each applicable template file. (post & archives so far)
Can anyone guide me in the right direction?
Thanks in advance....