<?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.
Thanks, I have fixes this now.
Advertise Archives Contact Privacy Policy Terms of Service Disclaimer
Hey, thanks! I was looking for such a solution for some time now.
It seems that one needs to use "&&" instead of "$$" to make it work. I'm not into PHP at all though.
BTW. Wprecipes' post is about excluding categories from RSS feed, not the main page.