Search bar with From (date) and To (date) options

Home Forums Calendar Products Events Calendar PRO Search bar with From (date) and To (date) options

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1141364
    Colin Purchase
    Participant

    Hey ,
    I have purchased this amazing plugin and its working pretty much the way i want it to be , all I need now is to add another search filter which allows the user to select range (Start date – End date) of date to search events

    I have attached a reference picture from one of your showcased work

    Is it possible to achieve this through configurations panel on dashboard or it is some customization required at code end , In case its customization in code can you please direct me in right direction on how to do it

    Thanks

    #1141628
    Brook
    Participant

    Howdy Colin,

    I would love to help you with this.

    Is it possible to achieve this through configurations panel on dashboard or it is some customization required at code end

    Good question. This is definitely going to require a decent measure of coding. But I’d love to help point you in the right direction to start.

    First thing I would do is add the extra selector to the tribe bar. We have a great tutorial on modifying the Tribe Bar: Customizing the Tribe Bar . With that in place you will now have a new variable submitted with the tribe bar, but it does nothing.

    Personally what I would do is tap into the tribe_pre_get_posts actions, which behaves identical to the infamous pre_get_posts but the tribe_ one will only run on events queries. From there I would check if the var is set for your end date tribe bar. If it is I would add an ‘end_date’ query var to the query.

    This might be all you need to do. However, I could see the potential for some lovely complications that might happen. This sort of modification will require a lot of testing and might end up having to account for a bunch of unforeseen complications. Only way to know will be to build it.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1141660
    Colin Purchase
    Participant

    This reply is private.

    #1142280
    Brook
    Participant

    This reply is private.

    #1142285
    Colin Purchase
    Participant

    This reply is private.

    #1142382
    Brook
    Participant

    This reply is private.

    #1150988
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Search bar with From (date) and To (date) options’ is closed to new replies.