NO BUG: Only parent loop appearing after v2.1.4

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Online archief - Kunsthal KAdE

Hello,

I have the following issue: on a page I have a loop inside a loop. Underneath the loops, I have a button that, on click, shows more of the parent loop with the content of the child loop. The parent loop is a loop of the years. The child loop is a loop of posts attached to the year. It worked up until version 2.1.4 but after upgrading it to 2.2, it only shows the parent loop without the child loop.

I have downgraded the theme through steps from 3.x to 2.1.4. It does not work in every version above 2.1.4.

Hi @brianvds ,

It’s hard to understand your setup and replicate the issue without having admin access.

Kindly prepare a staging site in 2.1.4 and share admin credentials to help@bricksbuilder.io (Include this forum thread URL as a reference)

I will check if it’s a bug in Bricks.

Regards,
Jenn

1 Like

Apologies for the very delayed answer (personal circumstances), however it is fixed. The solution is as follows:

Your inner query (post loop) should tick “Disable query merge”

Otherwise, it will take the pagination parameter as well. Example: you click load more, the page 2 parameter is passed to the AJAX lifecycle, the Term query will navigate to page 2, the Post query also navigates to page 2, which causes the Post query got no result.

It’s working in the previous version as it was a bug. We rectify this in 2.2