CMS Development

Mark_Beaumont
参加者

Category tags on blog listings page

解決

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 いいね!
1件の承認済みベストアンサー
JasonRosa
解決策
HubSpot Employee
HubSpot Employee

Category tags on blog listings page

解決

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

元の投稿で解決策を見る

2件の返信
JasonRosa
解決策
HubSpot Employee
HubSpot Employee

Category tags on blog listings page

解決

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
投稿者

Category tags on blog listings page

解決

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 いいね!