CMS post navigation with filter

Description
With this solution you can use the filters in the cms collection items.
The project has a collection list page and a collection item page. On both you can set a filter (in this example the facebook link is set or not set). When using this filter, the navigation will show only the items that match the filter settings
Thanks to the first contributors @hammerhouse and @lux in the posts below
https://forum.webflow.com/t/native-linking-to-previous-and-next-post-or-page-using-cms/19525/2
and
https://forum.webflow.com/t/native-linking-to-previous-and-next-post-with-titles-using-cms/55240
on the webflow forum. I added some changes in the script part. So please read the posts, specially how to set the ID's and then use the script in the custom code part of the collection item page. It will only work after publishing.
Make sure to set the style display from inline to none to hide the collection list in the collection item page
Feeling inspired?If this Made In Webflow site sparked some inspo, why not get started on a project of your own? Clone a site, purchase a template or start building from scratch.
We miss comments too!
Right now, Made in Webflow doesn't offer all of the same functionality that Showcase did, like the ability to leave comments. But don't worry: We're working to bring comments back as soon as possible!
As always, we'd love to hear your feedback! Click the link below to take a short survey about Made in Webflow.