October 9, 2012

How to Prevent Posts From a Particular Category to be Displayed in WordPress Loop

Do you need to exclude a particular category of posts from display on the WordPress loop? If yes, here is a handy code snippet to do so. Paste the code below into your functions.php file. Don’t forget to update the code with the category ID you want to exclude (on line 4)

Related Articles:

[related_posts]

Latest on WordPress (LatestWP) was established in 2010 to serve the WordPress community as a reliable source of information, news, tutorials, tips, themes and plugins reviews, and more. Stay tuned with us at the following Social Media channels.

Related Post

Automatically add Twitter and Facebook buttons to ... Nowadays, most bloggers are using Facebook and Twitter to promote their posts. In today's recipe, I'm going to show you how you can easily add Twitter...
Are You In Danger of Losing Your Website Forever? Backing up a WordPress site is more than installing and activating a backup plugin. In fact, if that is all you are doing, you may be in for a world o...
Eptonic – A new WordPress Theme Beyond the L... Eptonic – Beyond the Limits is a clean minimalistic theme that brings all the features that you are expecting from us like our other themes. It comes ...
The A to Z of Premium WordPress Theme Companies There are a huge amount of premium WordPress theme providers, these days, of varying quality. This is my attempt to collect as many together in one pl...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pin It on Pinterest

Share This