Site logo

Archived topic

How to build Archive Page with Generate Elements

1 reply · Started by Satori on July 21, 2022

Viewing posts 1–2 of 2

Hi, I am trying to make a template for archive pages with GeneratePress Elements and GenerateBlocks.

I am using Block - Content Template for the archive template.

What I want is to use the GenerateBlocks query loop and give it these styles: https://nodstrike.com/basics/

But apparently when using the query loop this is duplicated for each post that exists, understanding that I should create the template for a post without using the query loop.
This is the result I got: https://danielr193.sg-host.com/basics/

So my question is what is the best way to create an archive page with GeneratePress elements and GenerateBlocks?

Hi Satori,

The best approach to design an archive page would be to use a Content Template - Block Element.

Here’s an article for more information regarding it: https://docs.generatepress.com/article/block-element-content-template/

There are a couple of sample videos in the article showing how to create one with GenerateBlocks.

You shouldn’t use a Query loop block within a Content template because it will result in a loop with a loop causing duplicates..

Hope this clarifies!

This archived topic is closed to new replies.