[Resolved] Page Header template tag on taxonomy archives not working

Home Forums Support [Resolved] Page Header template tag on taxonomy archives not working

Home Forums Support Page Header template tag on taxonomy archives not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #607698
    Paul

    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.

    #607733
    Leo
    Staff
    Customer Support

    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 🙂

    #607813
    Paul

    Strange, but that worked. Thanks Leo!

    #608195
    Leo
    Staff
    Customer Support

    No problem!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.