Site logo

Archived topic

Custom Taxonomy Page with Full Block Capabilities

3 replies · Started by Jim on November 30, 2022

Viewing posts 1–4 of 4

Hello,

My site uses a custom taxonomy. For a handful of the most important taxonomy terms, I'd like to display a completely customized page that includes a full-length article and blocks, depending on the specific taxonomy term. At the bottom of the page, I'd still like to include a list of all articles like a standard archive page. So for example, if I had a taxonomy for animals, I might have something like this:

example.com/animal/giraffe (archive template)
example.com/animal/zebra (archive template)
example.com/animal/elephant (custom static page with full block capability)

It reminds me of the standard Reading setting in WordPress that allows you to specify whether you want your homepage to display your latest posts or a static page. It would be amazing if taxonomy terms had the same option.

Any suggestions on a high-level approach to achieve this? Not asking for a full solution. Just a high-level approach that's efficient and aligned with the way GeneratePress does things.

Hi Jim,

Try using a block element, and choose loop_template as the element type, assign it to the CPT taxonomy archive as location.

You can add all the blocks you want, then add a GB query loop block to display the default archive loop.

This block element will replace the default archive loop completely.

Hi Ying,

Thanks so much. This looks promising. I tried adding a block element, but when I try to select the element type, I don't see loop-template as an option:

https://app.screencast.com/D6ReDcP2J3C4v

Is that only available in newer versions of GP?

Are your GP theme and GP premium plugin up to date? Yes, it's a new option.

This archived topic is closed to new replies.