# Excluding multiple blog topics from a topic list

**URL:** <https://community.hubspot.com/t/excluding-multiple-blog-topics-from-a-topic-list/35966>\
**Category:** CMS Development\
**Created:** [April 22, 2021, 11:09am UTC](https://community.hubspot.com/t/excluding-multiple-blog-topics-from-a-topic-list/35966 "2021-04-22T11:09:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dm2/32/39641_2.png) [@DM2](https://community.hubspot.com/u/DM2)\
**Post date:** [April 22, 2021, 11:09am UTC](https://community.hubspot.com/t/excluding-multiple-blog-topics-from-a-topic-list/35966/1 "2021-04-22T11:09:53Z")

</div>

Hi

I am showing a list of topics but have 3 that I don’t want to show (Novice, Intermediate and Advanced). I’ve tried this:

```lia-code-sample
{% for topic in post.topic_list %}
 {% if topic.name != ['Novice', 'Intermediate', 'Advanced'] %}
 {{ topic.name }} 
 {% endif %} 
{% endfor %}

```

but that returns no topics.

Grateful for any help here.

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [April 22, 2021, 1:06pm UTC](https://community.hubspot.com/t/excluding-multiple-blog-topics-from-a-topic-list/35966/2 "2021-04-22T13:06:27Z")

</div>

@DM2 it should work if you do this:

```lia-code-sample
{% for topic in post.topic_list %}
 {% if topic.name is not in ['Novice', 'Intermediate', 'Advanced'] %}
 {{ topic.name }} 
 {% endif %} 
{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![DM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dm2/32/39641_2.png) [@DM2](https://community.hubspot.com/u/DM2)\
**Post date:** [April 22, 2021, 4:45pm UTC](https://community.hubspot.com/t/excluding-multiple-blog-topics-from-a-topic-list/35966/3 "2021-04-22T16:45:28Z")

</div>

Brilliant, thanks so much.
