StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Select Categories on Blog Page (http://www.studiopress.com/support/showthread.php?t=3283)

gaharrison 01-13-2009 10:33 PM

Select Categories on Blog Page
 
Is it possible to only show posts from select categories on the blog page? I have a category named "News". I don't need it to show up on the blog page.

I've looked at the code for page_blog.php but it didn't make sense to me. Category 1 is uncategorized on my site. I don't have any uncategorized posts. What I am looking to do is for the blog page to show every post except those from Cat=1, 3, 9, 21, 27. Any help is appreciated.

Also, why is the "more" tag not being read on the blog page? It's working fine on the home page.

adew 01-14-2009 02:02 AM

Re: Select Categories on Blog Page
 
Try this. Find this code in page_blog.php:
Code:

query_posts("showposts=5&paged=$page");
and change it to:
Code:

query_posts("cat=-1,-3,-9,-21,-27&showposts=5&paged=$page");
That should exclude those categories from the blog page.

gaharrison 01-14-2009 09:52 PM

Re: Select Categories on Blog Page
 
Worked fine. Thanks.

I am still wondering why the more tags aren't operative on the blog page. Some of my posts can be quite long and I don't want them running on forever on the blog page.


All times are GMT -5. The time now is 01:56 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.