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]

Related Post

The Ultimate Guide To WordPress Meta Boxes Meta boxes are the the little blocks in the editor section for each post type. They are actually quite old in WordPress terms – they were introduced...
How to Create a Full Width Page for WordPress in 5... If you don’t have the option of a full width Page template in your theme, it’s easy enough to create your own. You’ll need to be able to access ...
WooCommerce Review A New eCommerce Plugin to Watch I have used a range of platforms during my last five years in the e-commerce industry. From initial setup and product selection to writing product spe...
Featured WordPress Plugin: List Category Posts List Category Posts lets you list posts from a specific category by using a shortcode. The short code accepts the category’s name or id an...

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