query_posts() problem
-
Hello, I created a page template in order to display a certain category in my blog.
<?php query_posts('cat=5'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?>
The query_posts line is what I added to my page template file, the category’s id being 5. However, when I go to the page on my site, it simply displays the page title, and no data, just a blank page. Does anyone know what I am doing wrong? Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘query_posts() problem’ is closed to new replies.