Looper Offsets IF

See: https://imgur.com/a/iTVTNqR

We use a looper to show the most recent 4 posts (circled in yellow) from all categories. Below that we use another looper to show the last 5 most recent posts from a smaller set of these categories.

You will notice that some of the posts in blue are duplicates of the ones in yellow. This is because we don’t know how to offset posts in blue ONLY if they appear in the yellow section. We can’t do a general offset of say “2” in the blue section because we don’t know how many of those posts will be in the yellow section at a given time.

Is there a way or a parameter we can set in the looper config that will show stories in the blue section only if they do not already appear in the yellow section?

Hello @co50,

Thanks for writing in! Please be advised that the Looper Providers are independent to each other. Regretfully there isn’t a feature that you can pass a parameter from one Looper Provider to another. What you can do to avoid duplicates could be:
1.) Exclude the post items that is supposed to display in “All Categories” Looper and only display them in the specific category looper.
2.) Or create a custom PHP coding for your own Looper Provider that returns only post items that is not displayed in the first Looper Provider.

Be advised that custom PHP coding is beyond the scope of our support under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One service for further assistance.

Best Regards.

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