Site logo

Archived topic

Archive Page With Query Loop Added Via Content Element Displays Posts Repeatedly

8 replies · Started by Brent Wilson on May 17, 2022

Viewing posts 1–9 of 9

I am wanting a customized archive page for a podcast. So I created a block element set to content template, and added the new GB query loop block set to display 15 posts. But the 15 posts are being displayed over and over and over down the page. What am I doing wrong? Should I not be using the query loop inside an archive page?

Should I not be using the query loop inside an archive page?

That's correct, query loop block is supposed to add loops into static pages.

The content you build in Block element - Content template will apply to every post in the loop of your archive page as a template, that's why it repeats.

Please check this documentation and video to have better understanding on how to use content template:
https://docs.generatepress.com/article/block-element-content-template/

Okay. That makes sense.

On the archive page, the title is Archives: Podcast. How can I change that to just show Podcast ?

And another question - on an archive page, where do I set how many posts appear and customize the pagination at the bottom and stuff?

On the archive page, the title is Archives: Podcast. How can I change that to just show Podcast ?

You can use a block element - page hero to replace the default archive title:
https://docs.generatepress.com/article/block-element-page-hero/

on an archive page, where do I set how many posts appear and customize the pagination at the bottom and stuff?

Posts number is controlled by WP core, you can set posts number at settings > reading.

How do you want to customize the pagination? If you don't want the numbers, you can try using a block element - archive navigation:
https://docs.generatepress.com/article/block-element-archive-navigation-2/

Great, thanks for the help!

No problem :)

Just chiming in to say that there's seemingly an existing forum thread for every obscure problem I have and the answers from Customer Support are always amazingly succinct and helpful. I'm new to GP/GB and we are blown away by the level of support. Kudos team.

Hi Justin,

Thanks for the comment, we are delighted to read it :)

This archived topic is closed to new replies.