Archived topic
Archive for JetEngine Help
6 replies · Started by Kevin on August 28, 2022
I am trying to create a custom archive page for a CPT in Jetengine.
I created a block element, used content type and set the location to the archive of that CPT.
I created a layout using the listing grid block from jetengine
Added a button to load more on click.
When viewing the page, I see the listing grid, however, it is repeating. For instance, if I set the grid to display 3 posts, it will just show those posts, repeating down the page. I attached some screenshots that show what I mean. Pretty sure this may not be the right way to do this.
https://ibb.co/6bTFnLZ
https://ibb.co/y8209y4
https://ibb.co/R3BvBHN
Hi Kevin,
1. Do NOT add Grid to the content template, there should only be 1 post in the content template.
Please watch the video in the below link for a better understanding of the content template.
https://docs.generatepress.com/article/block-element-content-template/
2. You can activate the columns layout for CPT archive using this code?
https://docs.generatepress.com/article/using-columns-in-the-blog/#adding-columns-to-your-custom-post-type
So it seems the listing grid block from crocoblock is useless then? It's the only block that works with the filter block that they provide for jetengine.
even if I do a basic text, it just repeats.
[url=https://ibb.co/3hpj10H][img]https://i.ibb.co/j4yQhLF/4.jpg[/img][/url]
So it seems the listing grid block from crocoblock is useless then?
That kind of block is generating a query loop, it can be added to a static page to add posts, but not as a template.
even if I do a basic text, it just repeats.
Yes, each test text is representing a post. Did you check the video? The content template needs to be built with GenerateBlocks plugin.
I get it now. So basically, I just need to create a simple, basic archive page for that cpt, then create the fancy stuff in the static page. Simple enough lol. THanks, Ying for the assistance!
I just need to create a simple, basic archive page for that cpt,
You can create a fancy content template for the CPT archive using GenerateBlocks plugin.
hen create the fancy stuff in the static page
A static page is where you use the query loop kind of blocks :) GenerateBlocks plugin also has query loop blocks, similar to the plugin you are using right now.