Is there a way to make a post show up only in the category page and not on the main page? For example I want to add some gay posts to my blog... but I only want them accessible from the gay category. Is this possible?
Wordpress category question
Collapse
X
-
Tags: None
-
of course, just open your index page, look for the query and add
where 15 is your "gay" category.Code:'&cat=-15'
If you want to exclude it ONLY in main page but not in archives, do as follows:
where, again, 15 is your gay category and 20 is your tranny category, assuming you need to exclude more than 1 cat. Replace with your real category IDs, obviouslyCode:<?php if ( is_home() ) { query_posts($query_string . '&cat=-15, -20'); } ?>This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth


Comment