Hide certain categories from displaying on your homepage in Wordpress
- Monday, October 27, 2008, 16:43
- Wordpress
- Add a comment
First of all you need to find this piece of code in your theme, either in home.php or index.php
<?php while (have_posts()) : the_post(); ?>
Then you need to insert this piece of code directly below it
<?php if (in_category(’235′) $$ is_home()) continue; ?>
But you need to replace 235 with your category you want to exclude. You can find the category by going to manage-categories, then you need the ID of the category.
Now that’s how you exclude a category from the homepage in Wordpress.
UPDATE:
I Forgot Wprecipes.com did a post about this as well. Better go check that one out
Write a Comment
Related Articles
Related posts:
- How to add advertising to specific categories in Wordpress
- How to display something in one category online in Wordpress
- Now here is something interesting for Wordpress fans
- Make Wordpress post faster
- How to display something only on your home page with Wordpress.
- Getting traffic to your Wordpress Blog
- A free wordpress theme that looks like Deviantart
- Welcome to Wordpress Pieces
- Changing the course of this blog
- Retromania Free Wordpress Open Source theme
- So you know how to code and stuff. Use a wordpress theme.
- Brandonford - New magazine style wordpress theme / template
- The beginnings of a new wordpress theme
- Wordpress themes
- Wordpress 2.5 and plugins. A bit of blogging trouble
- The blog posts on the frontpage will rule the search engines on your blog
- Why Wordpress has become my cms of choice for any website.
- Themes matter for SEO and visitors
- Brilliant theme designs. Blogohblog, my favourite Wordpress theme designer
- Wordpress Plugin of the day: TextImage
- Wordpress themes: Wordpress-v2-theme
- The only plugins that work with Wordpress 2.7 so farWond
- Modicus Remix brilliant free minimalist wordpress theme
- A plugin everyone should have. Subscribe To Comments.
- Benefits of using Wordpress for your blog



































