<?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: Exclude all blog posts with a specific tag from blog listing page in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250143#M10827</link>
    <description>&lt;P&gt;So this is how I made use of it. You should be able to switch out 'topic_list' for the variables listed here under blog variables:&amp;nbsp;&lt;A href="https://designers.hubspot.com/docs/hubl/hubl-supported-variables.&amp;nbsp;" target="_blank"&gt;https://designers.hubspot.com/docs/hubl/hubl-supported-variables.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% for topic in content.topic_list %}
{% unless 'Topic to Exclude Here' in content.topic_list|map('name') %}
        {% if loop.first %}
            {% set related_posts = blog_recent_topic_posts('default', 5 ) %}
            {% for post in related_posts %}
                {% unless content.absolute_url == post.absolute_url %}
                    &amp;lt;div class="topic post container class"&amp;gt;
                        &amp;lt;div class=" some title class"&amp;gt;&amp;lt;a href="{{post.absolute_url}}"&amp;gt;{{ post.name}}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
                        &amp;lt;div class="some post image class"&amp;gt;&amp;lt;img src="{{ post.featured_image }}" alt="{{ post.name }}"&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                {% endunless %}

            {% endfor %}
        {% endif %}
{% endunless %}&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Feb 2019 15:54:50 GMT</pubDate>
    <dc:creator>cwilbanks</dc:creator>
    <dc:date>2019-02-01T15:54:50Z</dc:date>
    <item>
      <title>Exclude all blog posts with a specific tag from blog listing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/185721#M5605</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to exclude all posts with a specific tag from my blog listing page but show all others?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 16:16:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/185721#M5605</guid>
      <dc:creator>cwilbanks</dc:creator>
      <dc:date>2018-04-12T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude all blog posts with a specific tag from blog listing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/185968#M5626</link>
      <description>&lt;P&gt;Figured it out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% unless 'topic goes here' in content.topic_list|map('name') %}&lt;/P&gt;&lt;P&gt;content markup goes here&lt;/P&gt;&lt;P&gt;{% endunless %}&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 19:49:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/185968#M5626</guid>
      <dc:creator>cwilbanks</dc:creator>
      <dc:date>2018-04-13T19:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude all blog posts with a specific tag from blog listing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250115#M10825</link>
      <description>&lt;P&gt;Can you elaborate on how you got this to work?&amp;nbsp; I am very new to hubl.&lt;/P&gt;&lt;PRE&gt;{% unless 'Tip' in content.topic_list|map('name') %}
                   {% for content in topic_posts %}
markup
{% endunless %}&lt;/PRE&gt;&lt;P&gt;I know this isn't right.... can you use this with {% content in contents %}&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:59:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250115#M10825</guid>
      <dc:creator>drbipes</dc:creator>
      <dc:date>2019-02-01T13:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude all blog posts with a specific tag from blog listing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250143#M10827</link>
      <description>&lt;P&gt;So this is how I made use of it. You should be able to switch out 'topic_list' for the variables listed here under blog variables:&amp;nbsp;&lt;A href="https://designers.hubspot.com/docs/hubl/hubl-supported-variables.&amp;nbsp;" target="_blank"&gt;https://designers.hubspot.com/docs/hubl/hubl-supported-variables.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% for topic in content.topic_list %}
{% unless 'Topic to Exclude Here' in content.topic_list|map('name') %}
        {% if loop.first %}
            {% set related_posts = blog_recent_topic_posts('default', 5 ) %}
            {% for post in related_posts %}
                {% unless content.absolute_url == post.absolute_url %}
                    &amp;lt;div class="topic post container class"&amp;gt;
                        &amp;lt;div class=" some title class"&amp;gt;&amp;lt;a href="{{post.absolute_url}}"&amp;gt;{{ post.name}}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
                        &amp;lt;div class="some post image class"&amp;gt;&amp;lt;img src="{{ post.featured_image }}" alt="{{ post.name }}"&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                {% endunless %}

            {% endfor %}
        {% endif %}
{% endunless %}&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 15:54:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250143#M10827</guid>
      <dc:creator>cwilbanks</dc:creator>
      <dc:date>2019-02-01T15:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude all blog posts with a specific tag from blog listing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250159#M10830</link>
      <description>&lt;P&gt;I can't get that code to produce any results.&amp;nbsp; It also says I have a missing {% endfor %}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I tried it, was 'name' supposed to be replaced?&lt;/P&gt;&lt;PRE&gt;{% for topic in content.topic_list %}
{% unless 'Tip' in content.topic_list|map('name') %}
        {% if loop.first %}
            {% set related_posts = blog_recent_topic_posts('default', 5 ) %}
            {% for post in related_posts %}
                {% unless content.absolute_url == post.absolute_url %}
                    &amp;lt;div class="topic post container class"&amp;gt;
                        &amp;lt;div class=" some title class"&amp;gt;&amp;lt;a href="{{post.absolute_url}}"&amp;gt;{{ post.name}}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
                        &amp;lt;div class="some post image class"&amp;gt;&amp;lt;img src="{{ post.featured_image }}" alt="{{ post.name }}"&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                {% endunless %}

            {% endfor %}
        {% endif %}
{% endunless %}
                  {% endfor %}&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:12:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250159#M10830</guid>
      <dc:creator>drbipes</dc:creator>
      <dc:date>2019-02-01T16:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude all blog posts with a specific tag from blog listing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250182#M10832</link>
      <description>&lt;P&gt;The code looks right did you place the module into the blog template?&lt;/P&gt;&lt;PRE&gt;{% for topic in content.topic_list %}
{% unless 'Tip' in content.topic_list|map('name') %}
        {% if loop.first %}
            {% set related_posts = blog_recent_topic_posts('default', 5 ) %}
            {% for post in related_posts %}
                {% unless content.absolute_url == post.absolute_url %}
                    &amp;lt;div class="topic post container class"&amp;gt;
                        &amp;lt;div class=" some title class"&amp;gt;&amp;lt;a href="{{post.absolute_url}}"&amp;gt;{{ post.name}}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
                        &amp;lt;div class="some post image class"&amp;gt;&amp;lt;img src="{{ post.featured_image }}" alt="{{ post.name }}"&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                {% endunless %}
            {% endfor %}
        {% endif %}
{% endunless %}
{% endfor %}&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It doesn't show anything until the module is placed into the blog template.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:56:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-all-blog-posts-with-a-specific-tag-from-blog-listing/m-p/250182#M10832</guid>
      <dc:creator>cwilbanks</dc:creator>
      <dc:date>2019-02-01T16:56:43Z</dc:date>
    </item>
  </channel>
</rss>

