relevanssi_do_query Not Returning Any Results
-
I have this:
$args = array( 's' => $search, 'posts_per_page' => 30, 'show_posts' => -1, ); $query = new WP_Query( $args ); // Relevanssi support if ( function_exists( 'relevanssi_do_query' ) ) { relevanssi_do_query( $query ); } return $query->posts;
I have unit test content installed and if I remove the call to
relevanssi_do_query
I get search results, and if I add it in, I always get 0 results.I’m doing that piece of code above in an ajax call.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘relevanssi_do_query Not Returning Any Results’ is closed to new replies.