wp get post from id code example
Example 1: wp get post content by id
$post_id = 5// example post id
$post_content = get_post($post_id);
$content = $post_content->post_content;
echo apply_filters('the_content',$content);
Example 2: wordpress get post by id
$post = get_post( 123 ); // Where 123 is the ID
$output = apply_filters( 'the_content', $post->post_content );