Site logo

Archived topic

Issue Using Query Loop in Elements

5 replies · Started by Math on December 3, 2022

Viewing posts 1–6 of 6

Hi,

Within Elements (blocks), I am using Query Loop to generate 12 posts from a specific category. When I look at the actual page, it's replicating the same 12 posts again and again 12 times with pagination.

See link here.

Do you know what's causing it to repeat itself?

Thank you.

Hi there,

you cannot add Query Loop block in a Block Element - Content Template. As you're inserting them inside the Themes loop, hence the repetition.

Instead you can use a Block Element - Loop Template. Those replace the theme loop.

Hi David,

Good to know. I guess I will have to use the Templates to create the page.

On the same page, is it possible for the Header block (News heading with verbiage underneath) to be made full width?

In elements, I made it full width and made the inner container full width but it's still constrained.

Hi Math,

How is that section added? Is it through a Block Element? If so, try hooking it to after_header instead.

Let us know how it goes.

You are correct Fernando. I had to change it to after_header.

Thanks for the help!

You're welcome, Math!

This archived topic is closed to new replies.