• I’m using a “Polylang” plugin for my site. Also I’ve created some custom post types and custom taxonomies and terms for post types. For example:

    Trainings (post type)

    Training themes (taxonomy for “Trainings”)

    • Business (term)
    • Health (term)
    • Psychology (term)

    I have enabled translations for custom post types and custom taxonomies in “Polylang” settings.

    Then I’ve used get_term_link() function to create link to list of posts:

    $link = get_term_link('business', 'training_themes');
    <a href = "<?=$link?>">Show all posts</a>

    And I get all posts of this taxonomy/term for all languages but not only for current.

    It is possible to get posts only for current language?

  • The topic ‘Posts of taxonomy term only for current language’ is closed to new replies.