Undefined index: field
-
I’m using pre_get_posts to add a bunch of options from a custom search form to the $query’s tax_query via
$query->set( 'tax_query', ...)
which Relevanssi then gets a hold of it during relevanssi_do_query() and at around line 1027 of search.php it determines that tax_query is user generated. So far so good. But since that block just loops over and appends the values to $tax_query, relevanssi_search() then assumes since $tax_query is an array that it will contain a ‘field’ property.How can I get around this?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Undefined index: field’ is closed to new replies.