I don't know if it's possible, but I want to get the tags of events when I loop all the upcoming events like this:
{% for event in page.calendar.events_upcoming %}//get the tags of the event{% endfor %}Any suggestions or ideas? Maybe I don't use the best way!
Thank.
Official response from Taylor Pineiro
Please see below!
Share this post
Showing 3 reactions
Sign in with
{% for event in page.calendar.events_upcoming %} {% if event.tags_count > 0 %} var event_tags = new Array(); {% for eventtag in event.tags %} event_tags.push('{{ eventtag.name }}'); {% endfor %} {% endif %} {% endfor %}