$post = get_post( 123 ); // Where 123 is the ID $output = apply_filters( 'the_content', $post->post_content );
$post_id = 5// example post id $post_content = get_post($post_id); $content = $post_content->post_content; echo apply_filters('the_content',$content);