# Display posts when both tags exists

**URL:** <https://forum.ghost.org/t/display-posts-when-both-tags-exists/25731>\
**Category:** Developer help\
**Created:** [September 18, 2021, 8:18am UTC](https://forum.ghost.org/t/display-posts-when-both-tags-exists/25731 "2021-09-18T08:18:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akash.m.diu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/akash.m.diu/32/12333_2.png) [@akash.m.diu](https://forum.ghost.org/u/akash.m.diu)\
**Post date:** [September 18, 2021, 8:18am UTC](https://forum.ghost.org/t/display-posts-when-both-tags-exists/25731/1 "2021-09-18T08:18:25Z")

</div>

Hi! in ghost we can filter posts by multiple tags

```auto
{{#get "posts" include="tags,authors" filter="tags:[tag1, tag2]"}}
   ---
{{/get}}

```

but here I want to filter and display when both tags exists in that post…  
Is it possible to filter by that way…?

---

<div class="post-metadata">

**Author:** ![Stromfeldt](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stromfeldt/32/13572_2.png) [@Stromfeldt](https://forum.ghost.org/u/Stromfeldt)\
**Post date:** [September 18, 2021, 8:44am UTC](https://forum.ghost.org/t/display-posts-when-both-tags-exists/25731/2 "2021-09-18T08:44:01Z")

</div>

Would it not work if you did something like the following?

```auto
{{#get "posts" include="tags,authors"}}
    {{#has tag="tag1"}}
        {{#has tag="tag2"}}
            ---
        {{/has}}
    {{/has}}
{{/get}}

```

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [September 18, 2021, 11:19am UTC](https://forum.ghost.org/t/display-posts-when-both-tags-exists/25731/3 "2021-09-18T11:19:16Z")

</div>

The filtering should also let you do it with `filter=“tag:tag1+tag:tag2”`
