<?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 Re: Looping multiple topics in a single blog content module including the topic name in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/273873#M12528</link>
    <description>&lt;P&gt;Hello! To clarify:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;are you trying to create two sections on your blog, one for each topic with it's respective header above ("Whiskey Content" and "Tequila Content"), &lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;are you trying to create a single section "Whiskey &amp;amp; Tequila Content" that merges the two topics?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Stephanie O'Gay Garcia&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;HubSpot CMS Design &amp;amp; Development&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#32C43F"&gt;&lt;I&gt;If this helped, please mark it as the solution to your question, thanks!&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2019 12:16:13 GMT</pubDate>
    <dc:creator>Stephanie-OG</dc:creator>
    <dc:date>2019-06-06T12:16:13Z</dc:date>
    <item>
      <title>Looping multiple topics in a single blog content module including the topic name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/273814#M12525</link>
      <description>&lt;P&gt;Hi! I need help regarding on how to loop multiple topics in a single blog content module I have this code added on top of my listing page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set topic_posts = blog_recent_topic_posts(BlogIdNumber, 'whiskey-content', 3) %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I also want another topic to be added in the loop , like the "tequila-content" and would also want to add a headline of the Topic Name in the loop for example&lt;/P&gt;&lt;PRE&gt;&amp;lt;h3&amp;gt; {% topic name here%} &amp;lt;/h3&amp;gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;The above code should run for both the the if/else statement.&lt;/P&gt;&lt;P&gt;If you want to see my code I also attached it below, hope you could help me..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if topic %}

&amp;lt;div class="blog-section"&amp;gt;
    &amp;lt;div class="blog-listing-wrapper cell-wrapper"&amp;gt;
        {# simple_list_page indicates the "blog/all" page, which is a list of links to every blog post #}
        &amp;lt;div class="post-listing{% if simple_list_page %}-simple{% endif %}"&amp;gt;
            {% if blog_author %}
                &amp;lt;div class="hs-author-profile"&amp;gt;
                    &amp;lt;h2 class="hs-author-name"&amp;gt;{{ blog_author.display_name }}&amp;lt;/h2&amp;gt;
                    {% if blog_author.avatar %} &amp;lt;div class="hs-author-avatar"&amp;gt; &amp;lt;img src="{{ blog_author.avatar }}"&amp;gt; &amp;lt;/div&amp;gt; {% endif %}
                    &amp;lt;div class="hs-author-bio"&amp;gt;{{ blog_author.bio }}&amp;lt;/div&amp;gt;
                    {% if blog_author.has_social_profiles %}
                        &amp;lt;div class="hs-author-social-section"&amp;gt;
                            &amp;lt;span class="hs-author-social-label"&amp;gt;Find me on:&amp;lt;/span&amp;gt;
                            &amp;lt;div class="hs-author-social-links"&amp;gt;
                                {% if blog_author.facebook %}
                                    &amp;lt;a href="{{ blog_author.facebook }}" target="_blank" class="hs-author-social-link hs-social-facebook"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.linkedin %}
                                    &amp;lt;a href="{{ blog_author.linkedin }}" target="_blank" class="hs-author-social-link hs-social-linkedin"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.twitter %}
                                    &amp;lt;a href="{{ blog_author.twitter }}" target="_blank" class="hs-author-social-link hs-social-twitter"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.google_plus %}
                                    &amp;lt;a href="{{ blog_author.google_plus }}?rel=author" target="_blank" class="hs-author-social-link hs-social-google-plus"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                            &amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                    {% endif %}
                &amp;lt;/div&amp;gt;
                &amp;lt;h3 class="hs-author-listing-header"&amp;gt;Recent Posts&amp;lt;/h3&amp;gt;
            {% endif %}
            {% for content in contents %}
                &amp;lt;div class="post-item"&amp;gt;
                    {% if not simple_list_page %}
                                                &amp;lt;a href="{{content.absolute_url}}"&amp;gt;
                         
                        &amp;lt;div class="post-body clearfix"&amp;gt;

                       
                         {% if content.post_list_summary_featured_image %}
                                &amp;lt;div class="hs-featured-image-wrapper"&amp;gt;
                                  
                                        &amp;lt;img src="{{ content.post_list_summary_featured_image }}" class="hs-featured-image"  alt="{{ content.name }}"&amp;gt;
                                    
                                &amp;lt;/div&amp;gt;
                        {% endif %}
                        &amp;lt;div class="custom-date"&amp;gt;
                        {{ content.publish_date_local_time.strftime('%d') }}
                        {{ content.publish_date_local_time.strftime('%B') }}
                        &amp;lt;/div&amp;gt;
                            
                        &amp;lt;div class="post-header"&amp;gt;
                            &amp;lt;h2&amp;gt;{{ content.name }}&amp;lt;/h2&amp;gt;
                        &amp;lt;/div&amp;gt;
                        
                        
                          &amp;lt;!--post summary--&amp;gt;
                         
                            
                        &amp;lt;/div&amp;gt;
                          &amp;lt;/a&amp;gt;  
                       
                                            
                            
                       
                    {% else %}
                        &amp;lt;h2 class="post-listing-simple"&amp;gt;&amp;lt;a href="{{content.absolute_url}}"&amp;gt;{{ content.name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
                    {% endif %}
                &amp;lt;/div&amp;gt;
            {% endfor %}
        &amp;lt;/div&amp;gt;

        {% if not simple_list_page %}
 &amp;lt;!-- Numbered Pagination --&amp;gt;
&amp;lt;div class="blog-pagination"&amp;gt;
    {% set page_list = [-2, -1, 0, 1, 2] %}
    {% if contents.total_page_count - current_page_num == 1 %}{% set offset = -1 %}
    {% elif contents.total_page_count - current_page_num == 0 %}{% set offset = -2 %}
    {% elif current_page_num == 2 %}{% set offset = 1 %}
    {% elif current_page_num == 1 %}{% set offset = 2 %}
    {% else %}{% set offset = 0 %}{% endif %}

    &amp;lt;div class="blog-pagination-left"&amp;gt;
        {% if contents.total_page_count &amp;gt; 5 %}
            {% if current_page_num &amp;gt;= 4 %}
                &amp;lt;a href="{{ blog_page_link(1) }}"&amp;gt;1&amp;lt;/a&amp;gt;
                &amp;lt;a class="elipses" href="{% if current_page_num &amp;lt;= 5 %}{{ blog_page_link(1) }}{% else %}{{ blog_page_link(current_page_num - 5) }}{% endif %}"&amp;gt;...&amp;lt;/a&amp;gt;
            {% endif %}
        {% endif %}
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="blog-pagination-center"&amp;gt;
        {% for page in page_list %}
            {% set this_page = current_page_num + page + offset %}
            {% if this_page &amp;gt; 0 and this_page &amp;lt;= contents.total_page_count %}
                &amp;lt;a {% if this_page == current_page_num %}class="active"{% endif %} href="{{ blog_page_link(this_page) }}"&amp;gt;{{ this_page }}&amp;lt;/a&amp;gt;
            {% endif %}
        {% endfor %}
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="blog-pagination-right"&amp;gt;
        {% if contents.total_page_count &amp;gt; 5 %}
            {% if contents.total_page_count - current_page_num &amp;gt; 2 %}
                &amp;lt;a class="elipses" href="{% if contents.total_page_count - current_page_num &amp;lt;= 5 %}{{ contents.total_page_count }}{% else %}{{ blog_page_link(current_page_num + 5) }}{% endif %}"&amp;gt;...&amp;lt;/a&amp;gt;
                &amp;lt;a href="{{ blog_page_link(contents.total_page_count) }}"&amp;gt;{{ contents.total_page_count }}&amp;lt;/a&amp;gt;
            {% endif %}
        {% endif %}   
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="pager"&amp;gt;
         {% if last_page_num %}&amp;lt;a class="prev-link" href="{{ blog_page_link(last_page_num) }}"&amp;gt;« Previous&amp;lt;/a&amp;gt;{% endif %}
         {% if next_page_num %}&amp;lt;a class="next-link" href="{{ blog_page_link(current_page_num + 1) }}"&amp;gt;Next »&amp;lt;/a&amp;gt;{% endif %}
        
         
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
{% endif %}
        
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;



{% endif %}


{% if is_listing_view %}

&amp;lt;div class="blog-section"&amp;gt;
    &amp;lt;div class="blog-listing-wrapper cell-wrapper"&amp;gt;
        {# simple_list_page indicates the "blog/all" page, which is a list of links to every blog post #}
     
      &amp;lt;div class="post-listing{% if simple_list_page %}-simple{% endif %}"&amp;gt;
          
          {% if blog_author %}
                &amp;lt;div class="hs-author-profile"&amp;gt;
                    &amp;lt;h2 class="hs-author-name"&amp;gt;{{ blog_author.display_name }}&amp;lt;/h2&amp;gt;
                    {% if blog_author.avatar %} &amp;lt;div class="hs-author-avatar"&amp;gt; &amp;lt;img src="{{ blog_author.avatar }}"&amp;gt; &amp;lt;/div&amp;gt; {% endif %}
                    &amp;lt;div class="hs-author-bio"&amp;gt;{{ blog_author.bio }}&amp;lt;/div&amp;gt;
                    {% if blog_author.has_social_profiles %}
                        &amp;lt;div class="hs-author-social-section"&amp;gt;
                            &amp;lt;span class="hs-author-social-label"&amp;gt;Find me on:&amp;lt;/span&amp;gt;
                            &amp;lt;div class="hs-author-social-links"&amp;gt;
                                {% if blog_author.facebook %}
                                    &amp;lt;a href="{{ blog_author.facebook }}" target="_blank" class="hs-author-social-link hs-social-facebook"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.linkedin %}
                                    &amp;lt;a href="{{ blog_author.linkedin }}" target="_blank" class="hs-author-social-link hs-social-linkedin"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.twitter %}
                                    &amp;lt;a href="{{ blog_author.twitter }}" target="_blank" class="hs-author-social-link hs-social-twitter"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.google_plus %}
                                    &amp;lt;a href="{{ blog_author.google_plus }}?rel=author" target="_blank" class="hs-author-social-link hs-social-google-plus"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                            &amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                    {% endif %}
                &amp;lt;/div&amp;gt;
                &amp;lt;h3 class="hs-author-listing-header"&amp;gt;Recent Posts&amp;lt;/h3&amp;gt;
            {% endif %}
            {% for content in topic_posts %}
                &amp;lt;div class="post-item"&amp;gt;
                    {% if not simple_list_page %}
                                                &amp;lt;a href="{{content.absolute_url}}"&amp;gt;
                         
                        &amp;lt;div class="post-body clearfix"&amp;gt;

                       
                         {% if content.post_list_summary_featured_image %}
                                &amp;lt;div class="hs-featured-image-wrapper"&amp;gt;
                                  
                                        &amp;lt;img src="{{ content.post_list_summary_featured_image }}" class="hs-featured-image"  alt="{{ content.name }}"&amp;gt;
                                    
                                &amp;lt;/div&amp;gt;
                        {% endif %}
                        &amp;lt;div class="custom-date"&amp;gt;
                        {{ content.publish_date_local_time.strftime('%d') }}
                        {{ content.publish_date_local_time.strftime('%B') }}
                        &amp;lt;/div&amp;gt;
                            
                        &amp;lt;div class="post-header"&amp;gt;
                            &amp;lt;h2&amp;gt;{{ content.name }}&amp;lt;/h2&amp;gt;
                        &amp;lt;/div&amp;gt;
                        
                        
                          &amp;lt;!--post summary--&amp;gt;
                         
                            
                        &amp;lt;/div&amp;gt;
                          &amp;lt;/a&amp;gt;  
                       
                                            
                            
                       
                    {% else %}
                        &amp;lt;h2 class="post-listing-simple"&amp;gt;&amp;lt;a href="{{content.absolute_url}}"&amp;gt;{{ content.name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
                    {% endif %}
                &amp;lt;/div&amp;gt;
            {% endfor %}
        &amp;lt;div class="view-all-articles"&amp;gt;
    &amp;lt;p class="cta-blog-design"&amp;gt; &amp;lt;a href="https://news.besocialscene.com/topic/whiskey-content" target="_blank" &amp;gt;View All whiskey Articles&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt; 
 &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

        {% if not simple_list_page %}
 &amp;lt;!-- Numbered Pagination --&amp;gt;

{% endif %}
        
  &amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;

{% endif %}

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 04:19:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/273814#M12525</guid>
      <dc:creator>chrissa0000</dc:creator>
      <dc:date>2019-06-06T04:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple topics in a single blog content module including the topic name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/273873#M12528</link>
      <description>&lt;P&gt;Hello! To clarify:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;are you trying to create two sections on your blog, one for each topic with it's respective header above ("Whiskey Content" and "Tequila Content"), &lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;are you trying to create a single section "Whiskey &amp;amp; Tequila Content" that merges the two topics?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Stephanie O'Gay Garcia&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;HubSpot CMS Design &amp;amp; Development&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#32C43F"&gt;&lt;I&gt;If this helped, please mark it as the solution to your question, thanks!&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 12:16:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/273873#M12528</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2019-06-06T12:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple topics in a single blog content module including the topic name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274101#M12537</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;, I am trying to create single section "Whiskey Content"&amp;nbsp; then loop 3 articles then below it a Tequila Content loop 3 articles.&lt;/P&gt;&lt;P&gt;I want this to happen because the issue that I encountered while adding separate modules for each section&amp;nbsp; is each time I click on the view all articles for example topic whiskey content.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Tequila content loop also appears below the pagination.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 08:49:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274101#M12537</guid>
      <dc:creator>chrissa0000</dc:creator>
      <dc:date>2019-06-07T08:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple topics in a single blog content module including the topic name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274137#M12539</link>
      <description>&lt;P&gt;You should be able to create two variables then, one that gets three whiskey posts and one that gets three tequila ones:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{% set whiskey_content = blog_recent_topic_posts(BlogIdNumber, 'whiskey-content', 3) %}
{% set tequila_content = blog_recent_topic_posts(BlogIdNumber, 'tequila-content', 3) %}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then have each section with it's corresponding loop.&amp;nbsp;The buttons below can just lead to the corresponding topic URL using the &lt;A href="https://designers.hubspot.com/en/docs/hubl/hubl-supported-functions#blog-tag-url" target="_self"&gt;blog_tag_url&lt;/A&gt; function, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;h3&amp;gt;Whiskey Content&amp;lt;/h3&amp;gt;

{% for post in whiskey_content %}
  &lt;FONT color="#808080"&gt;// Your code for the post here&lt;/FONT&gt;
{% endfor %}&lt;BR /&gt;&lt;BR /&gt;&amp;lt;a class="topic-button" href="{{ blog_tag_url(BlogIdNumber, 'whiskey-content') }}""&amp;gt;See All&amp;lt;/a&amp;gt;

&amp;lt;h3&amp;gt;Tequila Content&amp;lt;/h3&amp;gt;

{% for post in tequila_content %}
  &lt;FONT color="#999999"&gt;// Your code for the post here&lt;/FONT&gt;
{% endfor %}&lt;BR /&gt;&lt;BR /&gt;&amp;lt;a class="topic-button" href="{{ blog_tag_url(BlogIdNumber, 'tequila-content') }}""&amp;gt;See All&amp;lt;/a&amp;gt; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Stephanie O'Gay Garcia&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;HubSpot CMS Design &amp;amp; Development&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#32C43F"&gt;&lt;I&gt;If this helped, please mark it as the solution to your question, thanks!&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:09:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274137#M12539</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2019-06-07T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple topics in a single blog content module including the topic name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274482#M12565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;, thank you for the help, the code that you said have worked in my&lt;/P&gt;&lt;P&gt;{% if is_listing_view %}&lt;/P&gt;&lt;P&gt;{% endif %}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to ask how can I be able to use this template for topic, so for example they click on the view article button ,&lt;A href="https://news.besocialscene.com/topic/whiskey-content" target="_blank"&gt;https://news.besocialscene.com/topic/whiskey-content&lt;/A&gt;&amp;nbsp;This template below will work. Tried combining them to one module but it always leads to the above mentioned code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if topic %}

&amp;lt;div class="blog-section"&amp;gt;
    &amp;lt;div class="blog-listing-wrapper cell-wrapper"&amp;gt;
        {# simple_list_page indicates the "blog/all" page, which is a list of links to every blog post #}
        &amp;lt;div class="post-listing{% if simple_list_page %}-simple{% endif %}"&amp;gt;
            {% if blog_author %}
                &amp;lt;div class="hs-author-profile"&amp;gt;
                    &amp;lt;h2 class="hs-author-name"&amp;gt;{{ blog_author.display_name }}&amp;lt;/h2&amp;gt;
                    {% if blog_author.avatar %} &amp;lt;div class="hs-author-avatar"&amp;gt; &amp;lt;img src="{{ blog_author.avatar }}"&amp;gt; &amp;lt;/div&amp;gt; {% endif %}
                    &amp;lt;div class="hs-author-bio"&amp;gt;{{ blog_author.bio }}&amp;lt;/div&amp;gt;
                    {% if blog_author.has_social_profiles %}
                        &amp;lt;div class="hs-author-social-section"&amp;gt;
                            &amp;lt;span class="hs-author-social-label"&amp;gt;Find me on:&amp;lt;/span&amp;gt;
                            &amp;lt;div class="hs-author-social-links"&amp;gt;
                                {% if blog_author.facebook %}
                                    &amp;lt;a href="{{ blog_author.facebook }}" target="_blank" class="hs-author-social-link hs-social-facebook"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.linkedin %}
                                    &amp;lt;a href="{{ blog_author.linkedin }}" target="_blank" class="hs-author-social-link hs-social-linkedin"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.twitter %}
                                    &amp;lt;a href="{{ blog_author.twitter }}" target="_blank" class="hs-author-social-link hs-social-twitter"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                                {% if blog_author.google_plus %}
                                    &amp;lt;a href="{{ blog_author.google_plus }}?rel=author" target="_blank" class="hs-author-social-link hs-social-google-plus"&amp;gt;&amp;amp;nbsp;&amp;lt;/a&amp;gt;
                                {% endif %}
                            &amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                    {% endif %}
                &amp;lt;/div&amp;gt;
                &amp;lt;h3 class="hs-author-listing-header"&amp;gt;Recent Posts&amp;lt;/h3&amp;gt;
            {% endif %}
            {% for content in contents %}
                &amp;lt;div class="post-item"&amp;gt;
                    {% if not simple_list_page %}
                                                &amp;lt;a href="{{content.absolute_url}}"&amp;gt;
                         
                        &amp;lt;div class="post-body clearfix"&amp;gt;

                       
                         {% if content.post_list_summary_featured_image %}
                                &amp;lt;div class="hs-featured-image-wrapper"&amp;gt;
                                  
                                        &amp;lt;img src="{{ content.post_list_summary_featured_image }}" class="hs-featured-image"  alt="{{ content.name }}"&amp;gt;
                                    
                                &amp;lt;/div&amp;gt;
                        {% endif %}
                        &amp;lt;div class="custom-date"&amp;gt;
                        {{ content.publish_date_local_time.strftime('%d') }}
                        {{ content.publish_date_local_time.strftime('%B') }}
                        &amp;lt;/div&amp;gt;
                            
                        &amp;lt;div class="post-header"&amp;gt;
                            &amp;lt;h2&amp;gt;{{ content.name }}&amp;lt;/h2&amp;gt;
                        &amp;lt;/div&amp;gt;
                        
                        
                          &amp;lt;!--post summary--&amp;gt;
                         
                            
                        &amp;lt;/div&amp;gt;
                          &amp;lt;/a&amp;gt;  
                       
                                            
                            
                       
                    {% else %}
                        &amp;lt;h2 class="post-listing-simple"&amp;gt;&amp;lt;a href="{{content.absolute_url}}"&amp;gt;{{ content.name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
                    {% endif %}
                &amp;lt;/div&amp;gt;
            {% endfor %}
        &amp;lt;/div&amp;gt;

        {% if not simple_list_page %}
 &amp;lt;!-- Numbered Pagination --&amp;gt;
&amp;lt;div class="blog-pagination"&amp;gt;
    {% set page_list = [-2, -1, 0, 1, 2] %}
    {% if contents.total_page_count - current_page_num == 1 %}{% set offset = -1 %}
    {% elif contents.total_page_count - current_page_num == 0 %}{% set offset = -2 %}
    {% elif current_page_num == 2 %}{% set offset = 1 %}
    {% elif current_page_num == 1 %}{% set offset = 2 %}
    {% else %}{% set offset = 0 %}{% endif %}

    &amp;lt;div class="blog-pagination-left"&amp;gt;
        {% if contents.total_page_count &amp;gt; 5 %}
            {% if current_page_num &amp;gt;= 4 %}
                &amp;lt;a href="{{ blog_page_link(1) }}"&amp;gt;1&amp;lt;/a&amp;gt;
                &amp;lt;a class="elipses" href="{% if current_page_num &amp;lt;= 5 %}{{ blog_page_link(1) }}{% else %}{{ blog_page_link(current_page_num - 5) }}{% endif %}"&amp;gt;...&amp;lt;/a&amp;gt;
            {% endif %}
        {% endif %}
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="blog-pagination-center"&amp;gt;
        {% for page in page_list %}
            {% set this_page = current_page_num + page + offset %}
            {% if this_page &amp;gt; 0 and this_page &amp;lt;= contents.total_page_count %}
                &amp;lt;a {% if this_page == current_page_num %}class="active"{% endif %} href="{{ blog_page_link(this_page) }}"&amp;gt;{{ this_page }}&amp;lt;/a&amp;gt;
            {% endif %}
        {% endfor %}
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="blog-pagination-right"&amp;gt;
        {% if contents.total_page_count &amp;gt; 5 %}
            {% if contents.total_page_count - current_page_num &amp;gt; 2 %}
                &amp;lt;a class="elipses" href="{% if contents.total_page_count - current_page_num &amp;lt;= 5 %}{{ contents.total_page_count }}{% else %}{{ blog_page_link(current_page_num + 5) }}{% endif %}"&amp;gt;...&amp;lt;/a&amp;gt;
                &amp;lt;a href="{{ blog_page_link(contents.total_page_count) }}"&amp;gt;{{ contents.total_page_count }}&amp;lt;/a&amp;gt;
            {% endif %}
        {% endif %}   
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="pager"&amp;gt;
         {% if last_page_num %}&amp;lt;a class="prev-link" href="{{ blog_page_link(last_page_num) }}"&amp;gt;« Previous&amp;lt;/a&amp;gt;{% endif %}
         {% if next_page_num %}&amp;lt;a class="next-link" href="{{ blog_page_link(current_page_num + 1) }}"&amp;gt;Next »&amp;lt;/a&amp;gt;{% endif %}
        
         
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
{% endif %}
        
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;


{% endif %}&lt;/PRE&gt;&lt;P&gt;T&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:56:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274482#M12565</guid>
      <dc:creator>chrissa0000</dc:creator>
      <dc:date>2019-06-11T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple topics in a single blog content module including the topic name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274516#M12566</link>
      <description>&lt;P&gt;I remember your site, I believe we emailed once &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid I don't fully understand your question. Is there something specific that you're trying to display on a topic page that you don't want on the posts, listings or author pages?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Stephanie O'Gay Garcia&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;HubSpot CMS Design &amp;amp; Development&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:37:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274516#M12566</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2019-06-11T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple topics in a single blog content module including the topic name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274534#M12569</link>
      <description>&lt;P&gt;sorry for the confusion.&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the code that I want to run if they click on a topic tag url&lt;/P&gt;&lt;PRE&gt;{% if topic %}
/insert code here
/
{% endif %}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;this will view 12 articles from a topic tag&amp;nbsp; with pagination.&amp;nbsp; and previous , next buttons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:26:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Looping-multiple-topics-in-a-single-blog-content-module/m-p/274534#M12569</guid>
      <dc:creator>chrissa0000</dc:creator>
      <dc:date>2019-06-11T14:26:05Z</dc:date>
    </item>
  </channel>
</rss>

