Include Post or Custom Post Type results from certain categories (or terms) only

Advanced options -> Exclude results panel

  1. Go to the Advanced options -> Exclude results panel and scroll down until the Include posts.. option
  2. Choose a taxonomy and the terms will load. Select the ones you need by dragging them to the left side of the box.
  3. Save the options, done

Hiding posts (or any CPT) with no categories or terms

By default, selected post type objects which are not associated with any terms will appear in the results list.

If you whish to exclude them as well, then trun OFF the Show posts/CPM with empty taxonomy terms? option on the Frontend Search Settings -> Advanced panel:

results matching ""

    No results matching ""