I have a custom post type 'property'. I am trying to make a search for it, but it does not work with wp_query parameter 's'.
$wp_query = Wp_Query(['post_type' => 'property', 's' => 'test']);
It works fine with other Wp_query parameters, like this:
$wp_query = Wp_Query([ 'post_type' => 'property', [ 'taxonomy' => 'property_usage_type', 'field' => 'id', 'terms' => $_GET['sb-usage-type'], ] ]);
It also works with other parameters except for 's'. But 's' is working with 'post' post type.
I also tried to echo out sql query -
$wp_query->request but it is echos out anything unless I remove 's'.