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

How to Add Google+ Verified Authorship to your Wor... If you have spend sometime blogging or reading other blogs, chances are you’re already know about the Google+ Verified Authorship and how it’s cha...
How to Disable PHP Execution in Certain WordPress ... Having cleaned numerous WordPress hacks, in our experience most backdoor access files disguise themselves in /wp-includes/ folder or in your /wp-conte...
3 Cool Clickbank Plugins for WordPress Amazon, LinkShare, and Commission Junction are great affiliate networks to be a part of to make some money online. But you won’t find too many d...
Interview with Brian McDaniel: Getting WordPress g... There have been days for all of us where we have been sitting at our desk in the office and the thought of chucking it all and just setting up our own...

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