Output specific profile tags

Hi, I am trying to display specific tags from the profile {{ tags }} array can't seem to make it happen. Any help is appreciated. {% for tag in profile.tags %} {% if tag contains "Tag:" %} // Display the tag name {% endif %} {% endfor %} Thanks

Official response from

When you are using profile tags, we offer two ways to display the tags. One would be using {{ profile.tag_list }} or you could use {{ profile.tag_list_sentence }}

If you would like to check the profile for a specific tag and display a listing of tags if the profile meets the tag criteria, this would be an example of code you could use:


{% for tag in profile.tags %}
{% if tag contains "Tags:" %}
Tag list: {{ profile.tag_list }}
{% endif %}
{% endfor %}


If you have any further specific questions, feel free to add a comment below or reach out to us at help@nationbuilder.com

Complete and current information on how to use NationBuilder is available in the documentation section.

Share this post

Showing 2 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.