I'm using the following query to generate a menu of posts in my single.php. I need to change the "category-name" part so that it displays the posts in the current category, NOT the posts in the specific, named category.
<?php // this query creates the menu of posts in this category $my_query = new WP_Query('category_name=women&showposts=-1'); while ($my_query->have_posts()) : $my_query->the_post(); ?>
At present, I am getting a very nice list of posts, but they are in the "women" category, not the category in which the current post resides. Any help would be greatly appreciated.