Pages

Saturday, December 19, 2009

How to hide a categories posts from Home page without using any plugin

Wordpress is full of possibilities and options but when you wants to use it as exclusive CMS then you need to consider few hacks and patch. There are many contents on the CMS which is not required to display on the home page, do you have any idea how to fix it without plugins?

Today we are going to discuss a common hacks to hide a categories posts from Home page without any plugin. Follow the following listed process to hides the categories from posts

A normal index.php page of Wordpress theme (i took a default sandbox theme) looks like


Post the below described code after the container (for your theme you can try to post it after header)

For excluding more than one categories use this code

Where ID= your categories ID’s

Note: If you don’t want to digg into code, use this awesome plugin named as Advanced Category Excluder which not only hides the posts from displaying on home page but can also hides the posts from search results, your RSS feed, your category, your recent post, and from web crawlers.

No comments:

Related Posts Plugin for WordPress, Blogger...