Site logo

Archived topic

Custom archive page for custom Taxonomy does not work

5 replies · Started by Silvano on April 8, 2023

Viewing posts 1–6 of 6

Hi guys,
In Elements I created an Archive Page for CPT and custom Taxonomy using the Query Loop Block.
The Archive shows Title, Thumbnail and Taxonomy Terms.
The problem...
In the frontend when I click on a term of a post, it should list all the posts of this term, but this does not happen. Instead, all posts for all terms are shown. The URL indicates correctly but the template shows all posts.

If I remove the Term Archive from the Location, leaving the taxonomy query to be done by the theme archive, it works correctly.

I would appreciate it if you can give me some guidance.
Maybe I'm forgetting something...

Hi Silvano,

Not sure I fully understand, can you link us to the archive page and let us know the steps to replicate your issue?

Let me know!

Hi Ying,
I published a test version here.
https://silper.net.br/test/palestrantes/

This page is an Archive page made with Elements and Query loop block used to list the cpt(palestrante) and taxonomy(temas).

If you click on one of the terms "gestao", "vendas" and "empreendedorismo", instead of showing only posts for this term, it continues to show all terms.

Hi Silvano,

Did you enable "Inherit query from template"? If not, enable it. That should resolve the issue.

Hi Fernando.
Yes, it did!
I swear I thought I did. I must have turned it off by mistake.

Thank you very much!

You're welcome, Silvano!

This archived topic is closed to new replies.