09/07/2016 at 11:56 am
#389967
Participant
Hi Steven –
I have implemented the filter you mentioned above & verified that the cn_search_terms filter is returning just the first entry in the terms
array.
However, when $atts['terms'] = $this->parse_search_terms
(line 2319 of class.retrieve.php) is ran, an empty array is being returned and, thus, returned no search results.
After much trial and error, I figured out that you need to return array($terms[0])
instead of $terms[0]
in the filter function you listed above. That seemed to do the trick!
You can mark this as resolved!