wordpress get post content code example
Example 1: wordpress get post body
<?php echo get_the_content(); ?>
Example 2: get the content from post id wordpress
$my_postid = 12;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;