View Single Post
Old 2006-11-14, 05:29 PM   #6
jayeff
Just because I don't care doesn't mean I don't understand!
 
jayeff's Avatar
 
Join Date: Sep 2006
Posts: 95
Send a message via ICQ to jayeff
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'); ?>

Last edited by jayeff; 2006-11-14 at 05:32 PM..
jayeff is offline   Reply With Quote