Conditional shortcode for final event in a list?
-
Is there conditional shortcode, or any way, to identify the final event shown in a list?
I use the event builder to display my events in a list, and I wanted a small amount of space between each event in the list, so at the end of all of the event builder code, I added a
<br>
. This works great, except I don’t need a break after the final event in the list, since there are no following events and it just creates unnecessary extra space.Is there a way, in the event builder, to only have the break used after all events EXCEPT for the final event in the list? Or is there some other way to get after what I’d like to do? That is, have a small amount of space (just a break – or even less) between each event, but not after the last event listed?
Thanks for the help!
https://www.ads-software.com/plugins/google-calendar-events/
- The topic ‘Conditional shortcode for final event in a list?’ is closed to new replies.