CMS Development

Mark_Beaumont
Teilnehmer/-in

Category tags on blog listings page

lösung

Hi there,

 

Does anyone know if it is possible to display blog tags on the blog home page? Much like the attached where it shows 'connected cars', 'wireless' etc?

 

Thanks,
Markimage (1).png

0 Upvotes
1 Akzeptierte Lösung
JasonRosa
Lösung
HubSpot Employee
HubSpot Employee

Category tags on blog listings page

lösung

Hey @Mark_Beaumont you should be able to add topics/tags in by going to your blog template > going into your blog listing HTML (see image below) > and adding the following code where you want the topics/tags to show: 

 

{% if content.topic_list %}

<p id="hubspot-topic_data">

{% for topic in content.topic_list %}

<a class="topic-link" href="{{ blog_tag_url(group.id, topic.slug) }}">{{ topic.name }}</a>{% if not loop.last %},{% endif %}

{% endfor %}

</p>

{% endif %}

 

edit-listing-template.png

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
JasonRosa
Lösung
HubSpot Employee
HubSpot Employee

Category tags on blog listings page

lösung

Hey @Mark_Beaumont you should be able to add topics/tags in by going to your blog template > going into your blog listing HTML (see image below) > and adding the following code where you want the topics/tags to show: 

 

{% if content.topic_list %}

<p id="hubspot-topic_data">

{% for topic in content.topic_list %}

<a class="topic-link" href="{{ blog_tag_url(group.id, topic.slug) }}">{{ topic.name }}</a>{% if not loop.last %},{% endif %}

{% endfor %}

</p>

{% endif %}

 

edit-listing-template.png

absolutions
Mitwirkender/Mitwirkende

Category tags on blog listings page

lösung

Hi,

 

This is Ab

 

Yes tags already display for each post in listing page.

You just need to styling for this.

 

But if you cant don't worryi'll help you.you can send me logins here

absolutions000@gmail.com

or skype live:absolutions000

 

Happy to help you!

Thanks,

Ab

0 Upvotes