Woocomerece Product Search problem
-
All I’am Having a Trouble regarding my search. My search querry runs fin it gives result as it should be, but the probem is its alsso creates dummy product of the first searched product. Like this as per image attached =? https://i.stack.imgur.com/IJuoR.png
$posts = get_posts(array( 'numberposts' => -1, 'post_type' => 'product', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'property_add_location_property_add_country', 'value' => $_POST['property_add_location_property_add_country'], 'compare' => 'IN', ), array( 'key' => 'property_add_location_property_add_state', 'value' => $_POST['property_add_location_property_add_state'], 'compare' => 'IN', ), array( 'key' => 'property_add_location_property_add_city', 'value' => $_POST['property_add_location_property_add_city'], 'compare' => '=', ), )));
and it is my code whichi I runon to my archie-product.php
Please help me out am doing to solve it for over 4 dys but cant find a proper way and result
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Woocomerece Product Search problem’ is closed to new replies.