Published on Feb 17, 2020

Excluding Duplicate Posts from Repeaters & Easy Posts in Oxygen

David Browne

If we're using multiple loops on a page, whether with Easy Posts, Repeaters or both, we may run into the same posts appearing multiple times. In this premium tutorial, we'll go through one way that we can prevent duplicate posts from being included on the page.

Live Demo

In the demo, all of the Easy Posts and Repeater elements are just fetching the latest posts, but none of the posts are seen twice on the page.

Also, notice as we click each post the current post is also removed from all of the repeaters and easy post loops. This is useful when building single post templates where we have 'latest posts' or similar and we don't want to include the current post in the list.

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $499 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right