My search results show pages from both WordPress & woo-commerce. I want to show some specific product information in the search results that only products have. Normal WordPress pages do not have this meta information and the search page fails if there are WordPress pages in the results.
So I want to show different search information if the result refers to a wordpress page, or if the result is a woo-commerce page. I thought it would be as simple as using
is_product() on my
searchloop.php but these codes refer to the search page itself, not the search results. Hence only
is_search() will result in a positive result.
Is there a way to use conditional statements that apply to the search results?