Support

Home Forums Event Espresso Premium Search Box – What does it search anyway?

Search Box – What does it search anyway?

Posted: September 23, 2013 at 2:33 pm

Viewing 1 reply thread


dalcevents

September 23, 2013 at 2:33 pm

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.

Did I miss something?

thanks, J

http://www.doveradultlearning.org


Sidney Harrell

September 23, 2013 at 6:06 pm

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.

Event Espresso