Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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);
 
PREVIOUS NEXT
Tagged: #wp #post #content #id
ADD COMMENT
Topic
Name
7+1 =