Home › Forums › Calendar Products › Events Calendar PRO › Event Calendar Pro Shortcode: limit number shown in list?
- This topic has 5 replies, 2 voices, and was last updated 5 years, 11 months ago by Michelle Dodd.
-
AuthorPosts
-
May 15, 2018 at 12:23 pm #1531134Michelle DoddParticipant
I’m referring to this set of shortcodes here:
https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/I needed to create a custom list of the most recent three events on specific pages, so I modified template files (in my theme of course) to show them the way I need them. However, I need to limit the list to 3 only. Is there a parameter for the shortcode to only show 3? Using limit=”3″ doesn’t work. Can
Here is the example dev page: https://balancedrocksaloon.com/t-bar-social-club/
Thanks,
MichelleMay 16, 2018 at 1:06 am #1531409JeremyKeymasterHi Michelle,
Thanks for reaching out to us! I would be happy to help you 🙂
If you use a shortcode such as this one:
[tribe_events_list limit="3"]
, it should work.Please let me know how it goes.
Cheers,
JeremyMay 17, 2018 at 11:23 am #1533248Michelle DoddParticipantThanks for the tip. This shortcode has a different display – is there a different template it’s pulling from? I customized the template for the listing and this is not matching.
Thanks,
MichelleMay 17, 2018 at 12:53 pm #1533348JeremyKeymasterHi Michelle,
Could you show me through a test page how the shortcode renders on your website? Maybe we could fix your display problem via css?
Cheers,
JeremyMay 17, 2018 at 1:11 pm #1533367Michelle DoddParticipantHere is how the first shortcode displays (under Upcoming Live Music) and how we want it to look:
Here is a duplicate of that page with the shortcode you gave me:
https://balancedrocksaloon.com/test/I know how to fix CSS but my question is why do these look different? Is there a different template I need to customize?
Thanks,
MichelleMay 18, 2018 at 12:42 am #1533588JeremyKeymasterHi Michelle,
To modify the output of the shortcode, you’ll want to use the methods described here: https://theeventscalendar.com/knowledgebase/themers-guide/
You’ll find the template for the [tribe_events_list] shortcode in wp-content/plugins/eventscalendar-pro/src/views/pro/widgets/lisy-widget.php. You might want to modify eventscalendar-pro/src/views/pro/widgets/modules/single-event.php as well.
You can also send optional details via the shortcode. You’ll find the full list on this page: https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/
I hope this helps,
Cheers,
JeremyJune 9, 2018 at 9:35 am #1549922Support 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 ‘Event Calendar Pro Shortcode: limit number shown in list?’ is closed to new replies.