Displays the full title and content of a specific WordPress page by its ID, using WordPress’s native filters to preserve the page’s formatting and generated content.

$id=1;
$page = get_post($id);
$title = apply_filters('the_title', $page->post_title);
$content = apply_filters('the_content', $page->post_content);
if($page) {
echo $title;
echo $content;
}

»
«