Hello,
I am using the WoodMart theme on my website and have encountered the following issue when configuring the search:
Currently, the search settings only allow displaying results for Products and Posts/Pages/Blog. However, important information on my site is also contained within the descriptions of product categories (Product Categories). I would like the search results to include categories if the search query matches text in a category description.
For example:
If a user searches for “red wooden chairs,” the search should find not only products with that description but also the “Wooden Chairs” category if its description contains the words “red” or “wooden.”
My questions are:
Does the WoodMart theme have a built-in option to include categories in search results?
If such an option exists, how can I configure it?
If this functionality is not available out of the box, are there any recommendations for adding this functionality using hooks, filters, or custom code (e.g., using pre_get_posts or similar)? Perhaps you could provide a code example or a link to documentation.
Thanks