<?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: Add blog tags/topics to recent posts listing in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188910#M5904</link>
    <description>&lt;P&gt;Glad I could help. please mark as solved.&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 19:52:45 GMT</pubDate>
    <dc:creator>Jsum</dc:creator>
    <dc:date>2018-05-07T19:52:45Z</dc:date>
    <item>
      <title>Add blog tags/topics to recent posts listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188898#M5898</link>
      <description>&lt;P&gt;Hi! I am hoping someone has an answer as to how to modify my code below to add in the topic/tag next to the posted date, based on each blogs topics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set posts = blog_recent_posts('default', 3) %}
&amp;lt;div class="background-image" style="background-image: url({{ widget.background_image.src }});{% if widget.parallax_background %}background-attachment: fixed;{% endif %}"&amp;gt;
    &amp;lt;div class="section section--features section--{{ widget.spacing }} section--{{ widget.background_color }}" style="background-color: {{ widget.background_color_override }};"&amp;gt;
        &amp;lt;div class="container"&amp;gt;
            {% if widget.heading != "" %}
                &amp;lt;div class="row-fluid hubstrap-row-center"&amp;gt;
                    &amp;lt;div class="span6 hubstrap-col"&amp;gt;
                        &amp;lt;div class="heading"&amp;gt;{{ widget.heading }}&amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            {% endif %}
            &amp;lt;div class="recent-posts row-fluid hubstrap-row"&amp;gt;
                {% for post in posts %}
                    &amp;lt;div class="span4 hubstrap-col"&amp;gt;
                      &amp;lt;p&amp;gt;
                        {{ post.publish_date_localized }} | &amp;lt;a href="#"&amp;gt;Topics/Tags&amp;lt;/a&amp;gt;
        							&amp;lt;/p&amp;gt;
                      &amp;lt;h3&amp;gt;&amp;lt;a href="{{ post.absolute_url }}"&amp;gt;{{ post.name }}&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;
                      &amp;lt;p&amp;gt;
                        &amp;lt;a class="cta_button get-started-cta" href="{{ post.absolute_url }}"&amp;gt;Read More&amp;lt;/a&amp;gt;
                      &amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;
                {% endfor %}
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 19:20:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188898#M5898</guid>
      <dc:creator>andymcentee</dc:creator>
      <dc:date>2018-05-07T19:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add blog tags/topics to recent posts listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188901#M5899</link>
      <description>&lt;P&gt;You need to loop through the topics per post:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% for post in posts %}

    {{ post.publish_date_localized }} | 
    &lt;FONT color="#339966"&gt;{% for topic in post.topic_list %}
        &amp;lt;a class="topic-link" href="{{ blog_tag_url(group.id, topic.slug) }}"&amp;gt;
            {{ topic.name }}
        &amp;lt;/a&amp;gt;{% if not loop.last %},{% endif %}
    {% endfor %}&lt;/FONT&gt;

{% endfor %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 19:40:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188901#M5899</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2018-05-07T19:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add blog tags/topics to recent posts listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188906#M5900</link>
      <description>&lt;P&gt;You're the best!&amp;nbsp;works like a charm now.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 19:44:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188906#M5900</guid>
      <dc:creator>andymcentee</dc:creator>
      <dc:date>2018-05-07T19:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add blog tags/topics to recent posts listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188910#M5904</link>
      <description>&lt;P&gt;Glad I could help. please mark as solved.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 19:52:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/188910#M5904</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2018-05-07T19:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add blog tags/topics to recent posts listing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/296445#M13926</link>
      <description>&lt;P&gt;Can I show up to 2 topics on the blog listing page?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 07:08:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-blog-tags-topics-to-recent-posts-listing/m-p/296445#M13926</guid>
      <dc:creator>anjalijain</dc:creator>
      <dc:date>2019-10-14T07:08:15Z</dc:date>
    </item>
  </channel>
</rss>

