- This topic has 6 replies, 2 voices, and was last updated 7 months ago by
Ying.
-
AuthorPosts
-
August 28, 2022 at 12:55 pm #2326553
Kevin
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/R3BvBHNAugust 28, 2022 at 1:06 pm #2326559Ying
StaffCustomer SupportHi 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-typeAugust 28, 2022 at 1:12 pm #2326561Kevin
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.
August 28, 2022 at 1:34 pm #2326570August 28, 2022 at 1:49 pm #2326575Ying
StaffCustomer SupportSo 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.August 29, 2022 at 4:51 am #2327006Kevin
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!
August 29, 2022 at 9:56 am #2327451Ying
StaffCustomer SupportI 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.
-
AuthorPosts
- You must be logged in to reply to this topic.