Support for nested meta query in relevanssi_do_query()
-
Hi,
I want to use nested meta query with boolean relations but i am not getting the expected results.
Following is my meta_query:
$query->query_vars['meta_query'] = array( 'relation' => 'OR', array( 'key' => 'custom_field_1', 'value' => '1', ), array( 'relation' => 'AND', array( 'key' => 'custom_field_2', 'value' => array('1', '2'), ), array( 'key' => 'custom_field_3', 'value' => array('3', '4'), ), ), );
After passing the above meta_query along with other fields in the relevanssi_do_query() method i am getting a white page.
Also, if I remove the ‘relation’ => ‘OR’ in the meta_query, then I get results which are only satisfying the below condition:
array( 'key' => 'custom_field_1', 'value' => '1', ),
I would really appreciate if someone can guide me how to use nested meta_query in relevanssi.
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Support for nested meta query in relevanssi_do_query()’ is closed to new replies.