[Plugin: Relevanssi – A Better Search] No Results
-
Guys,
I have installed Relevanssi and want to query my custom post only, I need to search by keyword and by custom taxonomy can some one point me in the right direction… note this is a separate search to the main site.
My custom post is products and my custom taxonmony is customTax
Here is what I found in the articles I read
relevanssi_do_query($your_query_object);.
So I came up with this,
if(isset($_GET['psearch'])) { echo 'doing p seach' ; $args = array('post_type' => 'products','posts_per_page'=> -1); print_r($args); $wp_query = new WP_Query($args); $wp_query ->query_vars['s']; relevanssi_do_query($wp_query); }
But I get no results with Relevanssi enabled, and one without it enabled..
John
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Relevanssi – A Better Search] No Results’ is closed to new replies.