Prolly a simple answer but I want to display a set of links from a category.
I am using this code
<?php $recent = new WP_Query("cat=6&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
<?php endwhile; ?>
Now this works fine if all i want to display in the link name is the title.
But the posts in question are in a category in the form :
x category >> y sub-cat >> z sub-cat >> post
I would like the link names to appear in the form:
"z sub-cat name" "post title"
not just "post title"
Does anyone know how to code this properly ?