Close

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 Authors’ Images to your WordPress Blog... Have you ever wished you could display the photos of your site’s authors (i.e. their avatars) in a more creative way, such as showing the author’s ava...
The 22 Most Popular WordPress Plugins Ever If you’ve ever wonder what the most popular WordPress plugins were, the following list gives you a rundown. All of the following plugins have been dow...
Lovo – A New Portfolio and Blog Premium Word... Lovo is a new premium Theme from ThemeForest. Lovo is a creative portfolio and blog theme with some nice jquery effects. Lovo comes with the followi...
How to Generate a Default Custom Menu Custom menus are obviously a major part of WordPress at this point… something that users have been begging for since 2.x. The only problem is that you...

Leave a Reply

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

Pin It on Pinterest

Share This