09 October 2012 ~ 0 Comments

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:

Rate This Article -->

GD Star Rating
loading...

LatestWP Score for this Article:

84%

With this simple snippet of code, you will be able to prevent posts that belong to a specific WordPress category not to show within the regular loop.

...[Visit Original Article]

Leave a Reply