Viewing 1 replies (of 1 total)
  • You can do querry where you getting only Ids (for oprymalization)
    then you can do:
    pll_get_post($post_id, $slug);
    ‘$post_id’ => (required) id of the post you want the translation
    ‘$slug’ => (optional) 2-letters code of the language, defaults to current language

    And you have translated post ID so you can have all other thinks 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Query custom pots type by language’ is closed to new replies.