Limit search to event name

Home Forums Calendar Products Events Calendar PRO Limit search to event name

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #106990
    tamasfabi
    Participant

    Is there any way how i can limit the search functionality in the tribe-events-bar to search inside the event name and ignore the event description?

    Tamas

    #107135
    Barry
    Member

    Hi – great question!

    Yes, that’s possible, but you’re actually discussing a facet of how WordPress searches for posts rather than The Event Calendar itself. It would definitely be possible to do this and you would most likely go about it by filtering the where clause of the query put together by WordPress to conduct the search.

    So that’s unfortunately a touch beyond what we can help you with here, but it is certainly achievable and I’d recommend reading through the relevant docs in the WordPress codex if you want to give this a shot. You may also find our own technical docs useful as a touchstone in the process.

    Hope that helps!

    #107148
    tamasfabi
    Participant

    I’ve get around it: i’ve stored all the data in additional fields that i wanted to exclude from the search, and edited the views/single-event.php, added the “the_meta();” function, so it displays the meta on the pages, but not searching them. with a little css it looks perfect!

    #136119
    Barry
    Member

    (Closing this out!)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Limit search to event name’ is closed to new replies.