Site logo

Archived topic

GPP 2.0 strange bug with content template

3 replies · Started by George on April 16, 2021

Viewing posts 1–4 of 4

When setting up a content template for a category page, there seem to be duplicated content. The template displays duplicated posts one with the default content template layout I initially imported and one with the updated one that I designed after modifying the original template. Very strange. I attach a video.

Hi there,

if the Two Content Templates have the same Display Rules then yes you will get duplicated content.
Choices:

1. Ensure that each Block Element Content Template have different Display Rules.
This will allow you to have one type of post layout for your Blog and a separate layout for your Category Archives for example.

OR

2. You can use a Parent Block to mix and match different templates.

a. Create the Global Template and set the Apply to: All Posts. Set the Display Rules for Blog and all your Archives.
2. Create a Category Specific Template and set the Apply to: Posts with Term ( select your taxonomy ). Below this you will see an option to Select: Parent Element. Change this to the Global Template. In doing so it will remove the Display Rules from this element - as it will use the ones set in the Global Template... but you won't have to think about exclusions anymore.

What this will do is apply your category specific template to only the posts with those terms, and all other posts will display the global template.
You can add as many term specific templates and assign them to the same Parent.

It was my mistake, I had a duplicate block Element. But I am gonna have to play a bit more with the Parent Element templates, I still find it a bit confusing inside the UI.

Thanks, David!

No problems :) Yeah have a play with the Parent item - its rather cool - it allows you to add multiple templates to your blog archive

This archived topic is closed to new replies.