# Hiding content collection in suggested posts

**URL:** <https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716>\
**Category:** Developer help\
**Created:** [October 24, 2018, 9:30am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716 "2018-10-24T09:30:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![danbartlett](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/danbartlett/32/1605_2.png) [@danbartlett](https://forum.ghost.org/u/danbartlett)\
**Post date:** [October 24, 2018, 9:30am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/1 "2018-10-24T09:30:08Z")

</div>

I have just followed [this guide](https://docs.ghost.org/tutorials/creating-content-collections/) to add a content collection to my blog.

I try and write 700 words each morning, and I wanted to put some of these morning scribbles online, without them being mixed in with my usual, polished blog posts.

So I created a `ramblings` collection, and hid any blog tagged with `ramblings` from the homepage. Great success.

Here’s what my routes looks like:

```auto
collections:
  /:
    permalink: /{slug}/ 
    template:
      - index
    filter: tag:-ramblings
  /ramblings/:
    permalink: /ramblings/{year}/{slug}/ 
    template:
      - index
    filter: tag:ramblings

```

Now I can just link to my ramblings index when I want to. They won’t be publicised much.

But I have an issue: my ramblings are now appearing at the bottom of my proper blog posts, as suggestions for what to read next. **Is there any way to omit a content collection from appearing at the bottom like this?**

Many thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [October 24, 2018, 10:47am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/2 "2018-10-24T10:47:24Z")

</div>

Ooooh this sounds like a bug. The previous & next links should be taking the collection into account. I imagine it’s something we’ve overlooked and you’re the first person to notice it.

However, for reasons, the behaviour might go away if you swap the order of your index and ramblings collections - they are meant to work as a cascade.

cc @Kate

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [October 24, 2018, 11:04am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/3 "2018-10-24T11:04:19Z")

</div>

I’d suggest for now, removing next/prev and adding your own related posts type block at the bottom of the post. A quick review tells me this isn’t a quick fix, and will likely go into a set of larger work on dynamic routing we have planned to be completed by the end of the year.

---

<div class="post-metadata">

**Author:** ![danbartlett](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/danbartlett/32/1605_2.png) [@danbartlett](https://forum.ghost.org/u/danbartlett)\
**Post date:** [October 24, 2018, 11:40am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/4 "2018-10-24T11:40:00Z")

</div>

Thanks for the quick reply @Hannah.

I tried swapping the ordering of the collections and unfortunately it didn’t have any effect.

I don’t know enough about Ghost to add my own related posts block yet, but I will look into it and keep an eye on new releases.

---

<div class="post-metadata">

**Author:** ![Kate](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kate/32/35_2.png) [@Kate](https://forum.ghost.org/u/Kate)\
**Post date:** [October 25, 2018, 10:19am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/5 "2018-10-25T10:19:19Z")

</div>

I’ve raised a bug issue in Ghost:

> <https://github.com/TryGhost/Ghost/issues/10059>
>
> Reported here: https://forum.ghost.org/t/hiding-content-collection-in-suggested-…posts/3716
> 
> \## Summary
> 
> If you define more than one collection, the prev/next helper shows posts from another collection.
> The helper should take the collection configuration into account. That basically means, it has to use the filter from the target collection.
> 
> \## Steps to reproduce
> 
> 1. Add two collections.
> 2. Filter by a tag.
> 3. Use the prev/next helper.
> 4. Serve a post from a collection. The helper shows posts from the other collection too.
> 
> \---
> 
> I have not looked into a solution yet.
> 
> 
> Ghost: master

We will work on a fix asap 🙂 Thanks for the report!

---

<div class="post-metadata">

**Author:** ![danbartlett](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/danbartlett/32/1605_2.png) [@danbartlett](https://forum.ghost.org/u/danbartlett)\
**Post date:** [November 1, 2018, 8:57am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/6 "2018-11-01T08:57:40Z")

</div>

Just in case anyone else has the same issue, I got around it by replacing:

```auto
{{#next_post}}

```

With:

```auto
{{#next_post in="primary_tag"}}

```

And the same for `previous_post`. You can find these two sections at the bottom of `post.hbs`. Now the previous/next post links only show blogs that have the same primary tag, which handily omits all blogs from my `ramblings` collection.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [November 15, 2018, 8:57am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/7 "2018-11-15T08:57:48Z")

</div>

Closed on November 15, 2018, 8:57am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [November 30, 2020, 2:40am UTC](https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716/8 "2020-11-30T02:40:07Z")

</div>

Opened on November 30, 2020, 2:40am UTC


