Site logo

Archived topic

How to Query Loop for Archive, Tag pages

4 replies · Started by Ashia on January 22, 2023

Viewing posts 1–5 of 5

HI,
I want to edit my archive pages and tag pages, I am using GPP and GBP.
I am able to edit the front page with Block - Loop template and the post page using Block - Content Template But I do not know how to edit the Category and tag pages.

What blocks and elements do I need to select for this?

Hi there,

in Block Element, you can set the Display Rules > Locations to include: Category Archive -> All Categories & Tag Archives -> All Tats OR you can include ALL Archives

Then you choose if you want to build:

a. Content Template to design the individual post article and leave the theme to handle the columns etc.
b. Loop Element to design the entire loop using a Query Loop Block, which will require its Parameters -> Inherit Query from template enabled. By setting that option, you can create ONE loop block template for ALL archives and the Query Loop will use the necessary query.

Hi David,
I have created an Element, the following are the settings...

Type: Block - Loop template
Location: Post Category Archive, All Archive
Users: All

In the Block - Loop template, I created Query Loop with good design with dynamic featured image, Headline etc.

1.When Inherit Query - Enabled, after save, Categories showing blank

.

2.When Inherit Query - Disabled > POST TYPE: post > ADD PARAMETER > TAXONOMIES: Categories > SELECT TERM: Current post term, After Save categories showing Blank.

2.when inherit Query - Disabled > POST TYPE: post > ADD PARAMETER > TAXONOMIES: Categories > SELECT TERM: Selected specific Category, After saved and visiting category page, its showing the Query loop, but in every category its showing same which I selected.

How to make it dynamic. so in every category it ll show its available posts.

Ok its started working Enabling Inherit Query.
Thanks David.

Glad to hear that!

This archived topic is closed to new replies.