Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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