# Pull tags from specific blog posts

**URL:** <https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732>\
**Category:** CMS Development\
**Created:** [March 24, 2022, 1:43am UTC](https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732 "2022-03-24T01:43:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRinehart](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@SRinehart](https://community.hubspot.com/u/SRinehart)\
**Post date:** [March 24, 2022, 1:43am UTC](https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732/1 "2022-03-24T01:43:49Z")

</div>

Hello!

Could someone help me figure out what code I need to use in order to pull the tags that are used on each blog post?

For example, I’m creating a module that pulls each blog post and shows a preview of it with a link to it, but I’d also like to show the tags in the preview that are listed for each.

I’m only able to pull all of the tags used: {{ blog\_tags(“default”, 250) }} but can’t link it to only pull the tags for each specific post.

Thank you in advance for any help!

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [March 24, 2022, 8:36am UTC](https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732/2 "2022-03-24T08:36:00Z")

</div>

Hii @[**SRinehart**](https://community.hubspot.com/t5/user/viewprofilepage/user-id/354714)

You can clone inbuilt post filter module and do require changes as shown in below image

 ![ChehakWadhdwa_0-1648110935388.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/f/0fbbfa14658c130889c43ddbc47669f7d5a55790.png)

After that you need to select tag in this as shown in below

 ![ChehakWadhdwa_1-1648110935402.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/d/8dc11cfae1c638829d7096aea54ce127a96ef1fb.png)

You will get output of list of tags and related their post as shown in below image

 ![ChehakWadhdwa_1-1648028929476.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/3/33cea80859381259a02872cb18d685a7ee6f2b50.png)

Hope this helps! If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![mangelet](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mangelet/32/83031_2.png) [@mangelet](https://community.hubspot.com/u/mangelet)\
**Post date:** [March 24, 2022, 9:35am UTC](https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732/3 "2022-03-24T09:35:18Z")

</div>

@SRinehart

Consider using

```lia-code-sample
{{ content.tag_list }}

```

when pulling each blog post for preview.

---

<div class="post-metadata">

**Author:** ![SRinehart](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@SRinehart](https://community.hubspot.com/u/SRinehart)\
**Post date:** [March 24, 2022, 12:00pm UTC](https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732/4 "2022-03-24T12:00:10Z")

</div>

Thank you for the replies! I tried {{ content.tag\_list }} and that didn’t work, so I tried {{ post.tag\_list }}, and that worked perfectly!

**SOLUTION:** {{ post.tag\_list }}

---

<div class="post-metadata">

**Author:** ![mangelet](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mangelet/32/83031_2.png) [@mangelet](https://community.hubspot.com/u/mangelet)\
**Post date:** [March 24, 2022, 12:52pm UTC](https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732/5 "2022-03-24T12:52:19Z")

</div>

The solution is the .tag\_list. The object you query depends on your markup. Most templates now use content instead of post. Glad you realized that was your case.

---

<div class="post-metadata">

**Author:** ![JVallejo7](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@JVallejo7](https://community.hubspot.com/u/JVallejo7)\
**Post date:** [May 5, 2022, 9:20am UTC](https://community.hubspot.com/t/pull-tags-from-specific-blog-posts/53732/6 "2022-05-05T09:20:25Z")

</div>

Thanks for the solution here!
