• Hello!

    I am having an issue with the Query Loop block, with a request on Pages.
    For the first element of the query, the web page displays the content of the first Article instead of the content of the first Page.

    The titles and other elements refer to the Page as expected. Only the first element seems to have this issue.

    The Editor preview for the page is also fine.

    I am using WordPress 6.1.1 with the Twenty Twenty-Three theme.

    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @aporee, I’m not getting the same result — here’s a screenshot for reference. I do have a code gist of the query block I’ve added to the site.

    Want to drop that in your site, to see if the issue persists? And if so, mind adding a URL? Thanks!

    Thread Starter Eve

    (@aporee)

    Hi @richtabor!

    Indeed the code gist you sent is working (https://redero.fr/?p=124).

    I used the graphical editor to add my query loop on front page (https://redero.fr), I will try to replace it by a custom HTML block.

    Thank you!

    Thread Starter Eve

    (@aporee)

    Hi again,

    I tried to create an article with the same query loop as on my front page, and it works (https://redero.fr/?p=134).

    Somehow it seems that the bug only affects the first query loop on the main page, because if I call a second query loop on front page, it appears bug-free.

    (So as a really shameless quick fix, I called a mock query loop before the real one, and made sure the content returned by the mock query was empty.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Query Loop with Pages issue’ is closed to new replies.