StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 01-13-2009, 10:33 PM
gaharrison gaharrison is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Location: Salisbury, MD
Posts: 36
Default 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.
__________________
G. A. Harrison
Peninsula Intermedia, LLC

http://www.activesenioronline.net
http://www.delmarvadealings.com
  #2  
Old 01-14-2009, 02:02 AM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default 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.
__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
  #3  
Old 01-14-2009, 09:52 PM
gaharrison gaharrison is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Location: Salisbury, MD
Posts: 36
Default 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.
__________________
G. A. Harrison
Peninsula Intermedia, LLC

http://www.activesenioronline.net
http://www.delmarvadealings.com
 

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Church 4.0 Theme options- select tags vice categories Chelle General Discussion 4 03-19-2010 11:20 AM
Search Box w/ Ability to Select Multiple Categories seattlesavvy General Discussion 5 03-06-2010 04:56 PM
Select ALL Categories on Homepage Widget tldagent General Discussion 3 01-21-2010 01:05 PM
Point Blog Page To Blog Categories dansbmw General Discussion 7 10-30-2009 12:02 PM


All times are GMT -5. The time now is 04:11 AM.

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