Hi, I have the search box widget ([EVENT_SEARCH]) installed on the site, but it seems that the search only returns results based on words in the event’s title?
Is this really the case?
I would like for prospective students to at least be able to find classes based on categories, even tags, not just titles. And really, it would be nice to be able to return results from the event description text.
It’s actually easier to make the modification to have it seach within the descriptions rather than the modification to have it seach categories. Go into templates/event_list.php and change line 175 from
<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$sql .= " OR e.event_name LIKE '%%$word%%' ";
to
<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$sql .= " OR e.event_name LIKE '%%$word%%' OR e.event_desc LIKE '%%$word%%' ";
Maybe you can add that, and then make sure your category names are somewhere in the event description.
Viewing 1 reply thread
The support post ‘Search Box – What does it search anyway?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.