Filtering results by categoryIn order to filter search results by category, use the following code: $url = get_bloginfo('url'); $url = esc_attr(add_query_arg(array('cat' => '10',…
How to index parent categoriesSuppose you have a parent category with no products in it but a child category does. If you search by…