How to exclude categories on wordpress frontpage
You can say, why should i exclude a category on frontpage? There may be some reasons for you, for example; you can create a category for your del.icio.us or twitter account and automatically post your status to these categories and ,you may want to exclude them on frontpage.
But i would rather do it for seo? How? I create a category and post articles that humans doulnt love but search engines would love to that category. And exclude that category on frontpage. This is simple:
if (have_posts()) {
and
while (have_posts()) {
Drop in the following code:
if (is_home()) {
query_posts('cat=-xxx');
}
xxx is the category number. To exclude more than one category, it is just a matter of listing each category ID in query_posts(), thus:
query_posts('cat=-12,-14,-22');
