Using query posts in seperate single.php templates
-
I’m working on a custom theme for my site and have set up 2 custom single.php templates. In both of the templates I’m using <?php query_posts(‘cat=ID’); ?> where ID is either the only category that I want or the category that I want to exclude.
It’s working on the homepage, but the single.php template now just shows all the posts that match that criteria. Is there a way to do this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using query posts in seperate single.php templates’ is closed to new replies.