Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2006-11-14, 06:29 PM   #10
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 06:32 PM..
jayeff is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:28 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc