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

Best Plugin To Add Schema Microdata To WordPress P... I subscribe to some of best SEO blogs and scan the email subject lines every day. One of my favorite sections to look in for SEO news updates & ti...
How to Install WordPress on your Mac with MAMP Installing WordPress on my Mac is a task that I have been putting off for a while, but I finally took the plunge a couple of weeks ago, to give myself...
A Better Way to Display Title Meta Tag To display title meta tag in WordPress, we can use wp_title function. But it’s not enough if you want your theme SEO friendly. In TwentyTen, TwentyEle...
A New Plugin To Make Your WordPress Site Mobile-Fr... Responsive WordPress design is all the rage these days. More and more folk are accessing the web via tablets and smartphones, and WordPress designers ...

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