# Hidden post by tag on /, still show up in footer on posts under /

**URL:** <https://forum.ghost.org/t/hidden-post-by-tag-on-still-show-up-in-footer-on-posts-under/17816>\
**Category:** Developer help\
**Created:** [October 23, 2020, 1:46pm UTC](https://forum.ghost.org/t/hidden-post-by-tag-on-still-show-up-in-footer-on-posts-under/17816 "2020-10-23T13:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbrtbrnschn](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rbrtbrnschn/32/9939_2.png) [@rbrtbrnschn](https://forum.ghost.org/u/rbrtbrnschn)\
**Post date:** [October 23, 2020, 1:46pm UTC](https://forum.ghost.org/t/hidden-post-by-tag-on-still-show-up-in-footer-on-posts-under/17816/1 "2020-10-23T13:46:25Z")

</div>

I have a setup a tag: “hidden”, which i excluded from the homepage at / by using a filter on a get wrapper:

```auto
{{!-- The main content area --}}
<main id="site-main" class="site-main outer">
    <div class="inner posts">

        <div class="post-feed">
        {{#get "posts" filter="tags:-[hidden]"}}
            {{#foreach posts}}

                {{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
                {{> "post-card"}}

            {{/foreach}}
        {{/get}}
        </div>

    </div>
</main>

```

I am running the latest version of ghost, but I know this has little to do with that.  
So in the footer of my posts that do show up on the homepage, the posts tagged ‘hidden’ featured.  
How do I stop that?

I tried changing it to filter out hash-hidden, and changed the hidden tag to #hidden  
still features it in the footers…

Id appreaciate any help whatsoever.

Robert

---

<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:** [October 23, 2020, 4:34pm UTC](https://forum.ghost.org/t/hidden-post-by-tag-on-still-show-up-in-footer-on-posts-under/17816/2 "2020-10-23T16:34:16Z")

</div>

> `{{#get "posts" filter="tags:-[hidden]"}}`

That will only filter posts within that specific `{{#get}}` block. You’d need to include the filter anywhere you don’t want to show posts with that tag so you’d need to do the same for the `{{#get}}` block in the theme’s footer.

If you’re trying to filter content across the whole site then dynamic routing may be closer to what you’re trying to achieve

> **[Ghost Themes - Dynamic URLs & Routing](https://ghost.org/docs/themes/routing/)**
>
> Build dedicated URL structures using Ghost's dynamic routing system, for custom homepages, podcasts, categories and more.

---

<div class="post-metadata">

**Author:** ![rbrtbrnschn](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rbrtbrnschn/32/9939_2.png) [@rbrtbrnschn](https://forum.ghost.org/u/rbrtbrnschn)\
**Post date:** [October 23, 2020, 4:52pm UTC](https://forum.ghost.org/t/hidden-post-by-tag-on-still-show-up-in-footer-on-posts-under/17816/3 "2020-10-23T16:52:35Z")

</div>

dynamic routing was my initial thought, hence I reconfigured my routes.yaml but the filter never worked.

how would you recommend I do it?

as far as I am concerned, I thought I would do this:

I reconfigured my index.hbs to filter out #hidden, and retagged posts accordingly, so dont be confused if it says hash-hidden below instead of the ‘hidden’ as stated in the initial question

```auto
routes:
  /:
    permalink: /{slug}/
    filter: tag:-hash-hidden
    template: index
    
collections:
# /:
# permalink: /{slug}/
# template: index
    

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/
    

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

```

That would render each post a 404,

so I thought

```auto
routes:
  /:
    permalink: /{slug}/
    filter: tag:-hash-hidden
    template: index
    
collections:
  /:
    permalink: /{slug}/
    template: index
    

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

```

which still features post tagged #hidden in the footer
