• Resolved fabbaf

    (@fabbaf)


    I have a custom post type (team_members) with the registered taxonomies “team_member_department”. I added terms (Guests / translated in polylang: G?ste) to this taxonomy.

    I want to use a custom archive page for all “team_member_department” and a different custom archive for the term “Guests” and its translation “G?ste”.

    So I have two files:

    • taxonomy-team_member_department.php
    • taxonomy-team_member_department-guests.php

    If I am on the archive page for “Guests” it uses the correct template file. If I switch to the German version “G?ste” it falls back to “taxonomy-team_member_department.php”.

    Is this the expected behaviour? Do I have to duplicate my template file and rename it to “taxonomy-team_member_department-gaeste.php”?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    I confirm that the template loaded for G?ste archive should be taxonomy-team_member_department-gaeste.php where gaeste is the slug for the term G?ste. I just checked. It works as expected for me.
    I invite you to check the slug of the term in your backend or in the url (because the automatically generated slug should be gaeste in German but could be gaste if it was generated from another language).
    Also you can check if it works correctly without Polylang.

    Thread Starter fabbaf

    (@fabbaf)

    Thanks for your reply. I will use a custom template for each slug.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘One custom template for taxonomy term not working on translation’ is closed to new replies.