# Create popular and related posts using internal and public tags

**URL:** <https://forum.ghost.org/t/create-popular-and-related-posts-using-internal-and-public-tags/27107>\
**Category:** Themes\
**Created:** [December 1, 2021, 6:31pm UTC](https://forum.ghost.org/t/create-popular-and-related-posts-using-internal-and-public-tags/27107 "2021-12-01T18:31:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyvyys](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hyvyys/32/15904_2.png) [@hyvyys](https://forum.ghost.org/u/hyvyys)\
**Post date:** [December 1, 2021, 6:31pm UTC](https://forum.ghost.org/t/create-popular-and-related-posts-using-internal-and-public-tags/27107/1 "2021-12-01T18:31:19Z")

</div>

I’m trying to add two post lists to the post page: popular posts (selected by internal tag #trending) and related posts (selected by tags of current post, but excluding any posts from the first section). I tried this:

```auto
        <h3>Popular</h3>
        <div class="post-feed">
            {{#get "posts" limit="3" filter="tags:[hash-trending]+tags:-[{{tags[*].slug}}]+id:-{{id}}" include="tags" as |popular| }}
                {{#foreach popular}}
                    {{> "post-card"}}
                {{/foreach}}
            {{/get}}
        </div>

        <h3>Related</h3>
        <div class="post-feed">
            {{#get "posts" limit="3" filter="tags:[{{tags[*].slug}}]+tag:-[hash-trending]+id:-{{id}}" include="tags" as |related| }}
                {{#foreach related}}
                    {{> "post-card"}}
                {{/foreach}}
            {{/get}}
        </div>

```

But I find it that `tags` includes internal tags which often results in empty lists.

Can I select posts that share tags with current post but excluding any internal tags? Or better still, excluding selected tags?
