Home › Forums › Calendar Products › Events Calendar PRO › Upcoming events section in Revolution Slider
- This topic has 3 replies, 2 voices, and was last updated 7 years, 11 months ago by
remipoirrier.
-
AuthorPosts
-
April 30, 2018 at 7:11 pm #1519737
remipoirrier
ParticipantI have an upcoming events section in mind and I built it exactly how I want and targeted the next event. I have some screenshots of what it looks like on my site and how I built it in rev slider with shortcodes/filters. My issue is I don’t want the slide to shuffle through 3 slides for the next 3 upcoming events. I want to add 2 or 3 more events under the one I already built but I want them to be the next events and update automatically. Ive targeted the next event but I want to target the 2nd and 3rd next event also and I do not want to go in and change this out everyday so I cant target the events specific ID. Im building in rev slider because this seems like the only way to make it how I want without serious coding.
May 1, 2018 at 6:46 am #1520041Victor
MemberHi Remi!
Thanks for reaching out to us! Let me try to help you with this topic.
First, please let me note that we are fairly limited in how much support we can give for custom development questions like that.
That said, we always like helping out and at least point users into the right direction as much possible.
I’m not exactly sure how you can integrate it with the slider, but you could perhaps use the tribe_events_list shortcode available > https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/#event-list-shortcode
The following shortcode will get you the next 3 upcoming events:
[tribe_events_list limit="3"]Additionally, let me point you to the following article about the tribe_get_events() helper function you can use to create custom events queries > https://theeventscalendar.com/knowledgebase/using-tribe_get_events/
I hope that helps. Let me know if any follow up questions.
Best,
VictorMay 1, 2018 at 6:59 am #1520067remipoirrier
ParticipantOk I will look into those. I know the [tribe_events_list limit=”3″] shortcode gives me the list but I can only style it so much. The main thing was to see if there is a shortcode that targeted the next event like just {{id}} then the event after that {{id2}} like the organizers example. I just didnt want to have to do serious code and it seems like Ive found a way around it with rev slider but just have to target the next 2 events. Any additional information on where I can find the [tribe_events_list limit=”3″] shortcode in the .php file so I can figure out how it works? Then I might be able to find the way it is targeting that list.
May 1, 2018 at 7:52 am #1520116Victor
MemberSure Remi, let me point you to the code.
The tribe_events_list shortcode is implemented in /wp-content/plugins/events-calendar-pro/src/Tribe/Shortcodes/Events_List.php file.
It uses the class Tribe__Events__Pro__Advanced_List_Widget located at /wp-content/plugins/events-calendar-pro/src/Tribe/Advanced_List_Widget.php
I hope that helps.
Best,
VictorMay 23, 2018 at 9:35 am #1537158Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Upcoming events section in Revolution Slider’ is closed to new replies.
