Exclude specific category from Search Results in Wordpress

/ Published in: PHP
Save to your folder(s)

Found this bit of code all over the place, except it missed out a very crucial part of the code which was to add a "-" in front of the ID you wish to exclude. Add this to functions.php in your theme folder.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.