CMS Development

kyKaq
Membre

View blog tag of the specific blog

Résolue

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 Votes
1 Solution acceptée
Philip_Marsh
Solution
Contributeur

View blog tag of the specific blog

Résolue

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 %}

Voir la solution dans l'envoi d'origine

1 Réponse
Philip_Marsh
Solution
Contributeur

View blog tag of the specific blog

Résolue

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 %}