Archived topic
about product category archive page
7 replies · Started by bruce on November 10, 2022
hello
here has four products category.
every product category need same page style like this url https://sp.jianzhanbang.tech/archives/category/products.
how to set these four category product archive page like that url
can only use one elemenet block ? or every category product archive page need one different element ?
thanks.
Hi Bruce,
You can use a Block Element - Loop Template or a Block Element - Content Template.
References:
https://docs.generatepress.com/article/block-element-loop-template/
https://docs.generatepress.com/article/block-element-content-template/
Yes, you can use just one Block Element for all archive pages.
hello
please see this url https://sp.jianzhanbang.tech/archives/category/products/eaton
how to let different category archive page only display this category post.
i do not know to do it
Hi there,
try this:
1. Delete the Content Template.
2. Create a new Loop template
3. Add the GB Query Loop Block to the template.
3.1 with the Query Loop block selected - enable the Inherit Query from Template
https://docs.generateblocks.com/article/query-loop-overview/#query-parameters
This will replace the Themes loop with the Query Loop block.
hello
ok now.
another question:
what different about post category / post archive / post category archive
Post category is targeting single post in certain category/categories.
Post archive is all archives of posts, including post category archive/tag archive/date archive/author archive.
Post category archive is category archive of posts.
thanks.
No Problem, glad to help :)