Searching just the calendar

Home Forums Calendar Products Events Calendar PRO Searching just the calendar

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18926
    David
    Member

    I tried a forum search but suprisingly nothing came up, I thought this would be a popular feature.

    Is it possible to display a search field on the events page (and possibly the calendar widget) that will search only the calendar?

    Failing that, is it possible to search the whole site INCLUDING the events?

    #18938
    Jonah
    Participant

    Hi David,

    We don’t have an events search widget/field but you can modify the search query in WordPress to include your events with this snippet: https://gist.github.com/2007736

    I hope that helps but let me know if you need anything else.

    Cheers,
    Jonah

    #18951
    David
    Member

    Thanks Jonah

    I found that by default the search facility was searching pages and events.

    To try to limit my search to events I use this as my search form

    <form role="search" method="get" id="searchform" action="”>

    Search for:

    The hidden field will only search the events, however the results bring back all instances of recurring events. For example, I have an event set to recoccur weekly, so the search results bring back 52 instances of the same thing. Do you know whether it is possible to bring back only the upcoming version?

    #19025
    David
    Member

    Hmm, it didn’t paste my search code correctly so here it is on an external paste website
    http://dpaste.org/OR2cU/
    The hidden input ensures I only search the calendar but it pulls back every occurance of a recoccuring event. Can I make it only pull back the upcoming version?

    Thanks

    #19034
    Jonah
    Participant

    Hi David,

    We don’t have a solution for this but another user in a thread contributed a possible solution: https://theeventscalendar.com/support/forums/topic/reoccuring-event-shows-multiple-times-in-loop/

    Maybe that will help?

    #976785
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Searching just the calendar’ is closed to new replies.