Post order among different block

Posted in: Newspaper
Post count: 15

Hello,
I have a question,
I have several “flex block” on home page.
My post are classified with a specific tag.
I have on the first section, the “news” the newest 5 post, among three blocks.
Then I have several section by “tags” (i.e. politics, economy, and so on)
I have activated the functionality of the theme for display post only one time (very smart function!)
The point is that now, the system when I have NewPost1, NewPost2, NewPost3…. are assigned not on the first three blocks on the top of the page, but are assigned to different blocks around the homepage blocks, with no precise or apparently logics, NP1 appear on the first section, NP2 on the second section, NP# appeare on the first section again and so on.
So, there is a function that will distribuite the “stack” of new post among a precise order (let’s say block one, block two, block three) and then those post will be not shown on the subsequent section where the post are selected by a specific tag?
Thank you very much to anybody could help me with the issue.

Post count: 21065

Hello @volpik!

You can use an offset for the blocks with the same filter: https://forum.tagdiv.com/offset-feature
For example, the first flex block will have no offset and limit 3, and the second flex block will have 3 in offset and limit 3 again or more, and so on.

Thank you!

Post count: 15

Dear Bettina, thank you very much fro your prompt replay.
The behaviour that I was describing is a bit different from what you can get with offset, and I am currently using offset, but is not solving the issue

let me try to better explain.
I have 10 post, p1..p10 p1 is the newest
Each post have a category, cat1, cat2, cat3
I have homepage, 3 section
Section 1 – New post
I want to show the newest post, no tag filtering,
So I set up
ID01-Block1 – show 1 post, no offset – No cat filtering
ID02-Block2 – show 2 post, 1 offset – No cat filtering
ID03-Block3 – show 2 post, 3 offset – No cat filtering
Then I have
Section 2- Cat 1
ID04-Block1 – show 1 post, no offset -cat1 filtering
ID05-Block2 – show 2 post, 1 offset -cat1 filtering
ID06-Block3 – show 2 post, 3 offset -cat1 filtering
Section 3- Cat 2
ID07-Block1 – show 1 post, no offset -cat2 filtering
ID08-Block2 – show 2 post, 1 offset -cat2 filtering
ID09-Block3 – show 2 post, 3 offset -cat2 filtering
The page have the show only one time “Unique Arthicles” active.

So what I want, that when the back end render the page,
first ID01 grab p1, then ID02 grab p2 and p3, and then ID03 grab p4 and p5.
Then, from the remaining 5 post, section 1 and section two will take the post according to filtering and of course the newest came first.
What I get instead, that ID01 get p1, then ID04 getP2 then ID07 get P3, then ID02 get P4 and p5. (remember I have Unique Articles ON)

I have tried to trick the system adding an extra tag, NEW, so the first three block, ID1-ID3 would filter according to the tag NEW, but it did not worked as well, as a said before ID05, ID07 run before ID02 and ID03 so they “grab” the new post, and as result the new post goes down in the pages, and in the NEW post section, where I would like to see the NEWEST post, I see the older ones.

Hope I was clear about what is happening.

So my question is, can I somehow “prioritize” the ID01-ID03 in running the query, getting the newest post, and then the other ones came, or can be other way to solve this issue?

Thank you very much in advance.

Post count: 21065

Hello @volpik!

I’ve checked, and it seems to happen as you explained.
I will add it to our investigation list!

Thank you!

Post count: 21065

Hello @volpik!

After a long investigation, I came up with the following response:
Unfortunately, this is the expected behavior when using the unique articles feature in combination with the offset on blocks. To better explain why this is happening, let’s take the first section as an example:
Block 1: Shows 1 post, no offset: So far, so good. There are no previous posts rendered on the page, so there is nothing to exclude.
Block 2: Shows 1 post, offset of 1: The system detects that the post of the first block has been rendered, so it will exclude it from being displayed in any other future blocks. This means that in Block 2, 1 post is excluded, and then the offset is applied, resulting in the fact that in reality, 2 posts are excluded, with the block displaying the 3rd most recent post instead of the 2nd.
Block 3: Shows 1 post, offset of 2: Just like in the case of Block 2, the system detects that the two posts from the previous blocks have been rendered, excluding them in the future. Because the block has an offset of 2, this means that 4 posts are excluded, thus displaying the 5th most recent article.

This gets even more complicated down the line because almost all of your blocks have offsets on them in the sections that follow.
There is no logical workaround for this because, again, this is the expected behavior when using this combination of the two features.

Thank you!

Post count: 15

I understand,
thank you very much for the feedback!
With my best regards

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.