• Hi there, I’m trying the Twenty Twenty-Five theme and when I activate the “Complex Blog” template for a Home or Archive page, it causes all of the upper blog posts to remain stagnant as I click through the blog’s pagination. For example, navigating to Page 2 shows the same handful of Posts up top, and only the lower posts in the uniform grid layout change.

    Very possible this bug relates to another user’s concern: https://www.ads-software.com/support/topic/query-loop-displays-the-same-posts-when-navigating/

    This is easy to replicate, I’m on a fresh install of WP, zero other plugins or conflicts. Applying the complex layout (as shown here) seems to break. The expected behavior is all of those posts should cycle as I’m paging through my blog.

    Please advise on how to fix, thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi
    Can you please clarify the exact steps you are taking to change the home or archive page? Then I will try to reproduce it. There is no “complex blog” so I think there is some confusion about the naming and terminology, and I want to make sure that anyone reading this can test it.

    Thread Starter ownedoperated

    (@ownedoperated)

    • Install Twenty Twenty-Five
    • Click Editor from left-sidebar under Appearance
    • Click Templates in left-sidebar
    • Click a template, such as Blog Home
    • Click Design toggle in right-sidebar and choose “News blog home” (I mistakenly called this “complex blog” because that’s what it was called when originally introduced).

    Thank you.

    It looks like the query loop “offset” setting has broken, but only on the front of the site.
    I can reproduce it. I tested by inserting a new query loop block with different settings and with different themes.

    This is surprising because if it broke in WordPress 6.7.1, I would have expected more than two reports.
    The bad news is that if the setting in the query loop is broken, it needs to be fixed in the Gutenberg plugin first, and then in WordPress. There will not be a quick fix, so my recommendation for now would be to not use this design.

    Small update: It seems to be related to sticky posts.

    Thread Starter ownedoperated

    (@ownedoperated)

    Hi Carolina, appreciate your feedback here. Can you elaborate on sticky posts please? Are you suggested the user (or disuse) of sticky posts would help in this situation?

    Hi

    The top part of the template is designed to remain the same when you navigate to page two etc. The pagination at the bottom is added for the last query loop.
    – There is a limitation with how the query pagination block works, it only works with one query, not multiple.

    But the sticky posts are not supposed to be repeated. The query loops have an offset, that is intended to hide the posts that have already been shown. I found that for the offset to also hide the sticky posts, the sticky posts need to be set to “exclude”.
    I am not sure if that is intended, or a bug with the query loop.

    For now, you can edit the template and manually select the query loop blocks and change the sticky post settings. Or, you can choose to not use sticky posts on the site.

    And I understand that this sort of defeats the purpose of having the same “featured” posts displayed at the top of the template, since you can’t use the sticky posts.

    I did a quick, not extensive check and it seems to be the intended default behavior of the query, not only the query block, to not offset sticky posts when offset is used.

    Thread Starter ownedoperated

    (@ownedoperated)

    Hi Carolina, thanks for testing! I’ll experiment more with the query block. In my install, I’m not using any sticky posts and ideally would like those upper posts to also rotate with pagination.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.