Archived topic
Page Header template tag on taxonomy archives not working
3 replies · Started by Paul on June 24, 2018
I set up a page header specifically for category archives.
In the category page header's Content tab, I'm using the post_terms.taxonomy template tag as follows:
<h1>{{post_terms.category}} Articles Archive</h1>
But when I view any category archive page ('News' for example), this is what I see in the page header container: {{post_terms.category}} Articles Archive
It should show up as: News Articles Archive , but isn't for some reason.
In Global Locations, I do have Categories under Taxonomies - Archives set to my custom page header.
Hi Paul,
Not 100% sure if I understand but try this instead:
<h1>{{post_title}} Articles Archive</h1>
I believe the second sentence here would explain it:
https://docs.generatepress.com/article/page-header-template-tags/#post_title
Let me know :)
Strange, but that worked. Thanks Leo!
No problem!