How to get cat ID in query_posts in single.php
-
I’ve used
<?php query_posts('showposts=8&cat='.get_query_var('cat')); ?>
to list posts outside the loop and it worked in archive.php, but now in single.php it doesn’t work… someone know how to make it work?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘How to get cat ID in query_posts in single.php’ is closed to new replies.