Hi i have created a custom search with the following query. But the query is not working when i add multiple values to the post_type filed, the search is not giving me any results? did you have the same problem and how did you managed to resolve it? Im using woocommerce. this query only works with one value on the post_type i don't know what is wrong here ?
$args = array( 's' => $searchterm, 'post_type' => array( 'product','post', 'page'), 'posts_per_page' => $max_posts_per_page, 'orderby' => 'date', 'paged' => $paged ); $the_query = new WP_Query($args);