-
collinslad
I want to customise category pages – what’s the easiest way? I tried adding a new page with a query loop as I want it to look and selected the particular category but don’t know how to set the amout of posts dislayed to “All” or infinity – it is possible?
-
Hi there,
If you want to have the infinite scroll for your archive page, you can create a block element – content template for the archives.
And enable infinite scroll at customizer> layout > blog.
-
collinslad
I want each category to have a separate link in the main menu which links directly to that category’s page – so separate pages for each category – can I do this with the content template or is there an easier way?
-
Hi there,
you can go to Appearance > Menus, in the menu builder it provides a list of Category Links. Just add them to your menu , they will link to the relevant category archive.
-
collinslad
Thanks David but I’d like to customise how the category archive pages look if possible.
-
You still can.
You can create a Block Element – Loop Template:https://docs.generatepress.com/article/block-element-loop-template/
This will replace the themes archive template for the Categories ( set in the Element Display Rules ).
You can then build your own archive page within that element.You can either create a separate Loop template for each category and build it as if it were a static page
Or a single loop template for all your Category Archives and use dynamic data to display the content.
Note; you can add a Query Loop block to the eleemnt, do not set any query parameters, just check the
Inherit Query from Template
option and it will automatically display the relevant posts. -
collinslad
Thanks so much – I’ll work on that.
-
collinslad
Hopefully the last question on this – I can get that to work but it’s only showing 10 posts from the category – how do I get it to show all of them?
-
You can’t use infinite load with this method. That is something the Query block will get after the GB 2.0 release.
For now you can add Pagination from the Query blocks toolbar -
collinslad
Excellent – thanks very much!
-
You’re welcome
- You must be logged in to reply to this topic.