Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php load specific post id on language

// 1- retrieve the right post ID
$my_postid = apply_filters( 'wpml_object_id', 1416 , 'post', false ); //wpml
$my_postid = icl_object_id(1416 , 'post', false ); //polylang @deprecated

$content_post = get_post($my_postid); // 2-use post id
 
PREVIOUS NEXT
Tagged: #php #load #specific #post #id #language
ADD COMMENT
Topic
Name
7+6 =