Search ALL events not just the events that month?

Home Forums Calendar Products Events Calendar PRO Search ALL events not just the events that month?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017353
    Mary Correia-Moreno
    Participant

    It seems the search functionality only searches the upcoming events for the month you are viewing.

    For instance, i have an event in November called “Legislative Lounge” but if i’m viewing october and search for “legislative” it says: “There were no results found for “legislative” this month. Try searching next month.”

    Is there a way to search all events and not just the month you are viewing? it’d be really nice to search for all upcoming events in other months as well since you’re already looking at the calendar of upcoming events for that month – is this possible somehow?

    #1017356
    George
    Participant

    Hey @William,

    Unfortunately, getting around that “In-this-month” search filter would take some extensive modification of core plugin code 🙁 We don’t officially offer any support which such customizations, but even if we did, this would be highly recommended against because it’s a pretty tightly wound system that keeps the searches in the proper place.

    If you’re curious about what would be involved, the simplest method I could think of would be to head into your plugin files for The Events Calendar and locate this file: src/Tribe/Template/Month.php

    This is the specific code responsible for handling and limiting those searches: https://gist.github.com/ggwicz/9192ceffc8810e823072

    So, if you’d like, you can use that code as a jumping-off point and work backwards from there to loosen the monthly limitation on search. That’s something we’d unfortunately not be able to help with, but I wanted to at least share something here 🙂

    Sorry to disappoint @William! Let me know if you have any thoughts on this or if I can help with anything else.

    Cheers,
    George

    #1017390
    Mary Correia-Moreno
    Participant

    Thanks for the info George, we’ll most likely let it be. but might be a nice feature for future releases! 😉

    #1018041
    George
    Participant

    Totally agree about this being a potentially very useful feature for many users. I know that we have many search-related improvements slated for the plugin, so stay tuned!

    Cheers,
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Search ALL events not just the events that month?’ is closed to new replies.