Searching within given categories/taxonomy terms only
Solution #1 - via options (easy)
There is an option to restrict results to terms in the plugin back-end. Please check this documentation.
Solution #2 - Programatical restriction via custom code
For more advanced restrictions you can use the asp_query_args filter.
PreviousShowing the post type name in result title or contentNextSearch only in the same category as the current post or page (single page)
Last updated