Why does query_posts only work in the sidebar?
I am trying to display the most recent posts in a specific category on the single page of an article before the comment section but it seems as though the query_posts just fails. If I grab the same following snippet and move it to the sidebar, it works just fine. Any ideas?
<?php query_posts(‘cat=4&showposts=10’); ?>
<?php while (have_posts()) : the_post(); ?>
- “><?php the_title(); ?>
- The topic ‘Why does query_posts only work in the sidebar?’ is closed to new replies.