Thursday, 13 November 2014

Get permalink by language wordpress wpml


Get permalink by language wordpress wpml

$lang_post_id = icl_object_id( $orginal_post_id , 'page', true, $language_code );
$url = get_permalink( $lang_post_id );

No comments: