<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to show all topics in blog listing in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/196155#M6646</link>
    <description>&lt;P&gt;I only get the topics associated with the&amp;nbsp;9 blog posts displayed on each page.&lt;/P&gt;&lt;P&gt;As for now, on my first page of my blog I get 5 topics, when I&amp;nbsp;navigate to the&amp;nbsp;second page, viewing my next 9 blog posts, I get 11 topics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like for all my used topics&amp;nbsp;to be showned on all the blog-listing pages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code. (The first part is if any topic is selected, here as well I would like for all topics to be shown after the selected topic.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if contents_topics %}
      {% if topic %}
           {% set temp = group.public_title ~ " - Exsitec | "%}
           {% set topicName = page_meta.html_title|replace(temp, '') %} 
           &amp;lt;div class="button-group -inline" style="width:100%"&amp;gt;
               &amp;lt;a href="{{ group.absolute_url }}" class="tag-item" style="background-color:#c9c9db"&amp;gt;
                   {{ topicName }}
               &amp;lt;/a&amp;gt;
          &amp;lt;/div&amp;gt;
     {% endif %}
     &amp;lt;div class="button-group -inline"&amp;gt;
          {% for thisTopic in contents_topics %}
              {% if thisTopic.slug != topic %}
                  &amp;lt;a href="{% if thisTopic.slug == topic %}{{ group.absolute_url }}{% else %}{{ group.absolute_url }}/topic/{{ thisTopic.slug }}{% endif %}" class="tag-item" style="{% if thisTopic.slug == topic %}background-color:#c9c9db {% endif %}"&amp;gt; &amp;lt;!--class="button -filter"&amp;gt;--&amp;gt;
                         {{ thisTopic.name }}
                  &amp;lt;/a&amp;gt;
                {% endif %}
            {% endfor %}
         &amp;lt;/div&amp;gt;
{% endif %}&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Jul 2018 10:51:25 GMT</pubDate>
    <dc:creator>hannalofving</dc:creator>
    <dc:date>2018-07-04T10:51:25Z</dc:date>
    <item>
      <title>How to show all topics in blog listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/196155#M6646</link>
      <description>&lt;P&gt;I only get the topics associated with the&amp;nbsp;9 blog posts displayed on each page.&lt;/P&gt;&lt;P&gt;As for now, on my first page of my blog I get 5 topics, when I&amp;nbsp;navigate to the&amp;nbsp;second page, viewing my next 9 blog posts, I get 11 topics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like for all my used topics&amp;nbsp;to be showned on all the blog-listing pages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code. (The first part is if any topic is selected, here as well I would like for all topics to be shown after the selected topic.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if contents_topics %}
      {% if topic %}
           {% set temp = group.public_title ~ " - Exsitec | "%}
           {% set topicName = page_meta.html_title|replace(temp, '') %} 
           &amp;lt;div class="button-group -inline" style="width:100%"&amp;gt;
               &amp;lt;a href="{{ group.absolute_url }}" class="tag-item" style="background-color:#c9c9db"&amp;gt;
                   {{ topicName }}
               &amp;lt;/a&amp;gt;
          &amp;lt;/div&amp;gt;
     {% endif %}
     &amp;lt;div class="button-group -inline"&amp;gt;
          {% for thisTopic in contents_topics %}
              {% if thisTopic.slug != topic %}
                  &amp;lt;a href="{% if thisTopic.slug == topic %}{{ group.absolute_url }}{% else %}{{ group.absolute_url }}/topic/{{ thisTopic.slug }}{% endif %}" class="tag-item" style="{% if thisTopic.slug == topic %}background-color:#c9c9db {% endif %}"&amp;gt; &amp;lt;!--class="button -filter"&amp;gt;--&amp;gt;
                         {{ thisTopic.name }}
                  &amp;lt;/a&amp;gt;
                {% endif %}
            {% endfor %}
         &amp;lt;/div&amp;gt;
{% endif %}&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jul 2018 10:51:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/196155#M6646</guid>
      <dc:creator>hannalofving</dc:creator>
      <dc:date>2018-07-04T10:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to show all topics in blog listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/196160#M6649</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/52337"&gt;@hannalofving&lt;/a&gt;&lt;/P&gt;&lt;P&gt;You can use the "blog topics" HUBL function to accomplish this. Just modify the second part of your code to use the my_topics loop instead of the contents_topics. Keep in mind that topics that &lt;STRONG&gt;do not&lt;/STRONG&gt; belong to any blog posts at all, probably will not appear in this list. But, at least your list won't be limited to just the blog posts that are appearing in the page.&lt;/P&gt;&lt;PRE&gt;{% set my_topics = blog_topics('default', 250) %}
&amp;lt;ul&amp;gt;
{% for item in my_topics %}
&amp;lt;li&amp;gt;&amp;lt;a href="{{ blog_tag_url(group.id, item.slug) }}"&amp;gt;{{ item }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
{% endfor %}
&amp;lt;/ul&amp;gt;&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:20:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/196160#M6649</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-07-04T11:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to show all topics in blog listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/196174#M6655</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;It works like a charm.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 12:41:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/196174#M6655</guid>
      <dc:creator>hannalofving</dc:creator>
      <dc:date>2018-07-04T12:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to show all topics in blog listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/426311#M22310</link>
      <description>&lt;P&gt;Do you know by any chance why blog_topics("default", 250) returns the list of my tags and not a list of my topics?&lt;/P&gt;&lt;P&gt;There is also only a blog_tag_url function, and no blog_topic_url function. I'm somewhat new to hubspot, so I might confuse something.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 11:45:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/426311#M22310</guid>
      <dc:creator>TGerhard</dc:creator>
      <dc:date>2021-04-09T11:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to show all topics in blog listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/426739#M22361</link>
      <description>&lt;P&gt;Topics and tags are the same thing. "Topics" was the original name of it, but in 2017 they changed it to Tags.&lt;/P&gt;&lt;P&gt;But you can still find functions for "topics"...&lt;/P&gt;&lt;P&gt;You can read more here (&lt;A href="https://www.hubspot.com/product-updates/blog-post-topics-changed-to-tags" target="_blank"&gt;https://www.hubspot.com/product-updates/blog-post-topics-changed-to-tags&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 08:21:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-show-all-topics-in-blog-listing/m-p/426739#M22361</guid>
      <dc:creator>hannalofving</dc:creator>
      <dc:date>2021-04-12T08:21:20Z</dc:date>
    </item>
  </channel>
</rss>

