TeddyCoder | Web Freelancer in Hochiminh City

Get content by post ID

function get_the_content_by_id($post_id) {
$page_data = get_page($post_id);
if ($page_data) {
return $page_data->post_content;
}
else return false;
}

BACK