Get a link to a record or page in any language version (Polylang)

125

<?php echo get_the_title(pll_get_post(17)); ?> //title
<?php echo get_permalink(pll_get_post(17)); ?> //link
<?php echo get_category_link(pll_get_term(7)); ?> //link to category

Comments

Submit
0 Comments