📅  最后修改于: 2022-03-11 14:54:22.235000             🧑  作者: Mango
// 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