How to exclude post body from WP search


My WooCommerce site uses the default WP search. The one thing that I need to change is to exclude the post body from the search (in my case, the product description).

Right now, the search searches title, body, taxonomy terms. I want it to search only title and taxonomy terms.

To clarify, I don’t want to simply exclude the product description from displaying on the search resultspage. I want to stop the search engine from looking in the product description. ie: Search engine should only look for matches in the product name and taxonomy terms.

I searched high and low and can’t find info how to do this. Any suggestions?


nstampler 1 year 2020-07-24T14:10:23-05:00 0 Answers 42 views 0

Leave an answer