CMS Development

kyKaq
Member

View blog tag of the specific blog

SOLVE

Hi, I want to show my blog tag of the specific blog, what should I do in order fo me to show it? 

And where will it be shown in the blog?

0 Upvotes
1 Accepted solution
Philip_Marsh
Solution
Contributor

View blog tag of the specific blog

SOLVE

Something like this should work for you. Place this wherever you want it to appear on the page. Try it and let me know if that works. This will loop through all tags a blog post has assigned to it.

{% for topic in content.topic_list %}
<a href="{{ blog_tag_url(group.id, topic.slug) }}">{{ topic.name }}</a>{% if not loop.last %},{% endif %}
{% endfor %}

View solution in original post

1 Reply 1
Philip_Marsh
Solution
Contributor

View blog tag of the specific blog

SOLVE

Something like this should work for you. Place this wherever you want it to appear on the page. Try it and let me know if that works. This will loop through all tags a blog post has assigned to it.

{% for topic in content.topic_list %}
<a href="{{ blog_tag_url(group.id, topic.slug) }}">{{ topic.name }}</a>{% if not loop.last %},{% endif %}
{% endfor %}