wp get page content by id code example
Example 1: wp get post content by id
$post_id = 5
$post_content = get_post($post_id);
$content = $post_content->post_content;
echo apply_filters('the_content',$content);
Example 2: wordpress get particular page content programmatically
<?php
$id=47;
$post = get_post($id);
$content = apply_filters('the_content', $post->post_content);
echo $content;
?>
Example 3: wordpress get particular page content programmatically
<?php
$post_7 = get_post(7);
$excerpt = $post_7->post_excerpt;
echo $excerpt;
$post_12 = get_post(12);
$trim_me = $post_12->post_content;
my_trim_function( $trim_me );
?>