Home › Forums › Calendar Products › Events Calendar PRO › display newest event only shortcode
- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by lunenburg.
-
AuthorPosts
-
August 16, 2018 at 10:36 am #1599226lunenburgParticipant
Hi, I was wondering if there is a way to display the events calendar in a slider format (I am using the divi theme from Elegant Themes) where I would have slide 1 as the upcoming event, slide 2, as the next event coming, slide 3, the third event in the future… and so on…
Thanks!
AleksAugust 17, 2018 at 5:38 pm #1600299EdwardMemberHey there !
Thanks for reaching out — that’s a great question, I can help with that 🙂
[tribe_events_list limit="1"]
This shortcode will return your newest event. To use this code multiple times, you may have to target a different category or class so you are not showing the same event on each slide.
You can call an event specifically and more with this shortcode, check out all the options it can be given.
Take a look at our article Integrating The Events Calendar with Slider Revolution.
Hope that helps!
August 19, 2018 at 6:22 pm #1600820lunenburgParticipantHi!
Thanks for the info!
I guess I was wondering, rather than having to use categories for each post in the slider, to use something along the lines of event post=1+0, event post=1+1, and event post=1+2 to list each of the three upcoming events that are closest to current date. Is there any potential option for that?
August 20, 2018 at 4:46 pm #1601660EdwardMemberThe potential is definitely there, but would require a bit of custom code work. You can always post a Feature Request as well!
Without custom code, I think that this could be done by using the shortcode parameters creatively. Check out our KB article that shows some more advanced usage of shortcode → https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/
Take care,
Ed ✌️September 11, 2018 at 9:35 am #1618650Support DroidKeymasterHey 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 ‘display newest event only shortcode’ is closed to new replies.