Problem listing category posts on a Page
-
Hi, I’m working offline on a WP blog which is made up of static pages and posts.
I have created a Page called ‘Warwick’
I have also created a Category called ‘Warwick’.I have created a template file called Warwick.php and have used this as the Page Template for the Warwick Page.
Inside the Warwick page, I have a specialised introduction to the page. Underneath this, I’d like to list all posts which have the Category ‘Warwick’.
This is the code at the top of the WordPress Loop:
<?php query_posts('category_name=Warwick'); ?><!-- Filter to show only Warwick Catergory Posts --> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
However, when I open this page, I get the search result error stating that no posts matched my criteria.
What am I doing wrong here?!
Thanks, Richard
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problem listing category posts on a Page’ is closed to new replies.