Alternative display (looper consumer) for posts does not work

I would like to design two alternative representations of posts for different devices. For this I have a looper provider and 2 alternative consumers that are switched on and off for specific breakpoints. However, the second consumer does not pull the correct results from the provider (2 newest posts), but only 1 page instead.

Or is there another method to reduce the number of posts to be drawn depending on the breakpoint?

I send login data.

Hello Daryl,

Thanks for writing in!

You need to specify the number of items for both Looper Consumers. If you don’t, the second looper consumer will just consume the left over items of the first looper. In your case, there is nothing displayed because you only have 4 published items.

Screenshot 2023-01-29 at 10.11.57 AM

Best Regards.

Hello, thanks for checking.
I had entered the desired number of posts for both consumers: Layout/Consumer A (widescreen to laptop): 4 newest posts, Layout/Consumer B (handheld devices): 2 newest posts. If consumer A is set to “All” (you changed that), the second consumer gets its 2 posts, too if displayed, but I only want to show 4 posts for A instead of all.

I have now built two alternative layouts for the breakpoints (layouts “L” and “S”), each containing its own provider and consumer. Then it works.

To understand it completely: If two consumers use one provider, does the second only get what the first leaves - even if the first is hidden due to breakpoint settings?

Hello Daryl,

Yes, you are correct. Even if the first Looper Consumer where hidden, the Loop did not knew that. The second Looper Consumer still displays whatever is left by the first consumer.

Hope this helps.

Ok, thanks!

Hi Daryl,

You are most welcome.

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