Home › Forums › Calendar Products › Events Calendar PRO › Event List customization and Search filters
- This topic has 8 replies, 2 voices, and was last updated 12 years, 6 months ago by
Chris.
-
AuthorPosts
-
October 11, 2013 at 4:27 am #70514
elmalak
ParticipantHi,
I am trying to achieve an ambitious customization of the Event Calendar Pro in my site here, http://thinkweb.ie/clients/emerald/events/I’ve done a lot of what’s required but I am currently stuck with the following 2 points;
1. How to add more filters to the Search Bar on top?
I’ve created a number of additional fields for each event, and want to be able to search those specific fields in the top search bar.2. List Comments besides the event in the List view as shown in the attached screenshot.
https://dl.dropboxusercontent.com/u/10242392/find-event-sample.jpgI really hope you can guide me to perform those two remaining points as you’ve always been a great help for me.
Many thanks.
October 13, 2013 at 8:58 pm #70800Chris
ParticipantTo a register a new filter you’ll need to use this hook:
http://docs.tri.be/Events-Calendar/source-function-tribe_events_get_filters.html#988-997You’ll need to examine the views/modules/bar.php file to see how to setup that array to pass in so you get what you need to display.
Then you’ll need to hook into the views hook:
http://docs.tri.be/Events-Calendar/source-function-tribe_events_get_filters.html#1006and also look again at bar to get the page to filter to what you need.
As for comments,
you’ll need to use the action into tribe_events_after_the_content in single-event.php in the loop template file. From there, you’ll need to use get_comments() and pass in an array using the global post’s $post->ID variable as the post_id, orderby oldest to newest, and query for only a single post. If get_comments is empty, display the no comments text, else display the latest comment, grab the avatar of the user with the last comment, and show use the tribe_get_event_link to show the link-Chris
October 13, 2013 at 8:59 pm #70801Chris
ParticipantYou can get more info on get_comments here on the codex:
http://codex.wordpress.org/Function_Reference/get_comments-Chris
October 14, 2013 at 5:18 am #70832elmalak
ParticipantHi Chris,
Thank you for your follow up with my question here.I will read the WP documentation for further info about the comments, however, I am not sure I understand the other part about the Search filters.
Any chance of giving me a sample code to use for that part?
I tried the links you’ve posted but I am not sure how to use them!Much appreciated.
October 14, 2013 at 9:44 am #70880Chris
ParticipantHi there,
Thanks for your follow-up. Admittedly, this is a bit outside the scope of support that we can provide here on the forums. While we are definitely able to help people with simple tweaks when they arise, writing this chunk of code is unfortunately a bigger task than we’ve got bandwidth and as a result the best we can offer up is to try and point you in the right direction towards docs and the themer’s guide. It might be worth looking for a freelance developer on WordPress’ Jobs board of Freelance Switch, if you’re in a pinch. Apologies that we couldn’t offer up more and thanks for your patience/support so far.-Chris
October 15, 2013 at 3:32 am #71027elmalak
ParticipantHi Chris,
Thank you for your prompt response.
I fully understand that and I appreciate it of course, however, I am not really looking for getting you to build it for me, I was just looking for a starter, just a sample code that I can build on, that’s all.
So, if that sounds reasonable to you, I would love it if you would be willing to help me with it.If not, I’ll understand.
Regards,
elmalakOctober 18, 2013 at 8:04 am #71625Chris
ParticipantHi there,
Unfortunately even a sample is going to require a great deal of code and time to make 🙁-Chris
October 21, 2013 at 2:13 am #71891elmalak
ParticipantThanks Chris.
I understand and appreciate your follow up.October 21, 2013 at 7:10 am #71941Chris
ParticipantNot a problem 🙂
-
AuthorPosts
- The topic ‘Event List customization and Search filters’ is closed to new replies.
