Exclude Posts, Pages, or Categories from Search Results

image_pdfimage_print

I tend to use pages or categorized posts to fill widgets on home pages, because it provides users with an easy way to change various areas on their home page or sidebars. Sometimes, though, we don’t want that content to show up in searches. Here’s how to exclude them:

stuff we dig

FYI: yes, the above are affiliate links, so we do make a small amount of money if you follow them over and buy what they're selling. Thank you for helping pay our hosting costs!

Dave Kuhar

Dave runs Transmit Studio, a media creation lab in San José. He's built more websites with WordPress than he can remember. He likes hearing himself talk and writing about himself in third person.

1 Comment

  1. Phil Morse on November 11, 2013 at 5:41 am

    Thanks! Worked for us.

Leave a Comment