We have a specially adapted search page template written for our wordpress website that returns matches in custom post types, posts and woocommerce products and organises those search results in separate sections on the search result page.
We need the single search box to be able to search both across all post types and products for keywords AND categories for the search term. At the moment the search will only search keywords. So a visitor to the website can type in a search term and the search results page will show all results that include that search term in the title, description and categories that post/product is assigned to.
The search page template has already been built by another developer. It searches and returns results based on keyword but not on categories. We need somebody to work out how it can search on categories too.