Next-Prev not working in collection


I’m having an issue with {{#next_post in="primary_tag"}} in a custom collection

        permalink: /{slug}/
        template: index
        filter: tag:-[hash-podcast]
        permalink: /podcast/{slug}/
        filter: tag:[hash-podcast]

When I’m in /podcast/ It only gives me previous and next post from the / collection.
here is a link to the website for example:

There shouldn’t be anything in the next prev because there is only one post and with only an internal tag #podcast

For more details:

Didn’t have this issue before using collections. did i do something wrong ?


I think the issue you’re facing is due to the non-existence of “dynamic routing for next/previous post helper”. Please vote if you’d like it implemented :slightly_smiling_face:

1 Like