Home › Forums › Calendar Products › Events Calendar PRO › Search bar with From (date) and To (date) options
- This topic has 7 replies, 4 voices, and was last updated 9 years, 8 months ago by
Colin Purchase.
-
AuthorPosts
-
July 19, 2016 at 12:24 am #1141364
Colin Purchase
ParticipantHey ,
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 eventsI 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
July 19, 2016 at 11:43 am #1141628Brook
ParticipantHowdy 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
July 19, 2016 at 1:02 pm #1141660Colin Purchase
ParticipantThis reply is private.
July 20, 2016 at 10:02 pm #1142280Brook
ParticipantThis reply is private.
July 20, 2016 at 10:38 pm #1142285Colin Purchase
ParticipantThis reply is private.
July 21, 2016 at 7:31 am #1142382Brook
ParticipantThis reply is private.
August 12, 2016 at 9:35 am #1150988Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Search bar with From (date) and To (date) options’ is closed to new replies.
