Search without Default WordPress Conditions
-
acf-better-search/app/Search/Where.php on line 36
A config switch to disable getDefaultWordPressConditions() would be nice.
You already added the filter acfbs_search_post_object_fields – but if I return an empty array on this filter, the SQL is wrong:......OR (a.meta_value LIKE '%63517%')) OR (() AND () AND () AND () AND () AND ().....because you do not check for empty $conditions in function getDefaultWordPressConditions() ->
$list[] = '(' . implode(' OR ', $conditions) . ')';
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Search without Default WordPress Conditions’ is closed to new replies.