'WHERE 1=2' problem
-
Hello,
I’m performing several search queries on one page at my WordPress site. I wanted to use relevanssi to get more relevant results, but the plugin seems to be always turned off for each query that I run. This is fragment of code that I’m using:
$shopArgs = array(
's' => get_query_var('s'),
'post_type' => array('wp_aff_products'),
'posts_per_page' => 3,
);
$shopQuery = new WP_Query($shopArgs);relevanssi_do_query($shopQuery);
if ($shopQuery->have_posts()) {
while($shopQuery->have_posts()) {
...What am I doing wrong here, and how I can leverage the power of relevanssi? Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘'WHERE 1=2' problem’ is closed to new replies.