View Single Post
Old 2006-11-14, 07:01 PM   #7
NobleSavage
Lord help me, I'm just not that bright
 
Join Date: May 2006
Posts: 103
Send a message via ICQ to NobleSavage
Quote:
Originally Posted by jayeff View Post
It's not difficult...

Assuming the ID of the category in question was 11, then you create a template for it naming it as category-11.php

In that template you preface "The Loop" with:
Code:
<?php query_posts('category_name=CATNAME&showposts=20'); ?>
...replacing CATNAME with the name of the category and the showposts parameter to suit yourself.

If you don't want those articles showing up on the main page, put this ahead of "The Loop" on the main template:
Code:
<?php if (is_home()) { query_posts('cat=-11'); } ?>
And should you not want this category to appear in the links, use this in the sidebar:
Code:
<?php wp_list_cats('exclude=11'); ?>
Perfect! Thanks for saving me the time on figuring that out.
NobleSavage is offline   Reply With Quote