query_posts not working
-
I installed a new copy of WP and set it up with a static home page. As per the instructions on the WP site using the Settings. From what I understand I should be using a page for the static home page and index.php for the news page which should be showing my blog posts. I added the following to the index.php
<?php query_posts('category_name=news'); ?> <?php if (have_posts()) : ?>
I want to show only posts with the category news. Navigating to my News page, which from what I understand should be index.php, I still get a full list of all posts from all categories.
What am I missing?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘query_posts not working’ is closed to new replies.