Print Post Excerpt by Post id
Description
This code will print the excerpt of any post based on the id. In this case the id is “175” simply change 175 to the post that you wish to target
This code will print the excerpt of any post based on the id. In this case the id is “175” simply change 175 to the post that you wish to target
PHP Source Code
<?php $my_postid = 175;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_excerpt;
$content = apply_filters('the_excerpt', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;?>
<?php $my_postid = 175;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_excerpt;
$content = apply_filters('the_excerpt', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;?>
<?php $my_postid = 175;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_excerpt;
$content = apply_filters('the_excerpt', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;?>
<?php $my_postid = 175;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_excerpt;
$content = apply_filters('the_excerpt', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;?>