ADS with two post block loop

Posted in: Newspaper
Post count: 236

Hi, I’m trying to create a custom category template.
I have this problem: I would like to insert a block for ADS between posts, I created a post block loop with 10 posts without pagination, on the same column I inserted a block for ADS, and another post block loop with 10 others posts, plus pagination.
The problem is that the last 10 posts (of the second post block loop) are the same as the first 10 posts (of the first post block loop).
I also tried to enter an offset of -10 but the result doesn’t change.

How can I put several post block loops into a category?
Should I use post blocks without the loop?

I await support.
Thank you

Post count: 21065

Hello!

It is wrong to write offset -10, you need to write there a positive value for example 10.
Also, it is a bit tricky to use 2 different posts loop. The problem there is the pagination if you will use 2 posts loop, maybe you could use the button load more for example.
I recommend you to use a flex block, so they have a tab Filter where you can select to display posts only from a category dynamically: https://forum.tagdiv.com/flex-block-settings-guide/
Hope that helps you!

Thank you!

Post count: 236

Hi,
if I create a template category with 2 “Flex” post blocks, with an ADS in the middle, how can I manage the pagination?
If I set up the first Flex post block without pagination, and the second Flex post block (with offset) with pagination, how is pagination handled?
Does it work correctly only if I set “Load more button” or “infinite load”? If I set “next prev ajax” does it work?
Thank you

Post count: 21065

Hello!

The best options are Load more button and infinite load, without pagination.

Thank you!

Post count: 236

Thank you

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.