Answers for "getting all the content from the post wordpress"

PHP
0

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;
Posted by: Guest on March-03-2021
0

how to display limited post content in wordpress

wp_trim_words($text, $num_words, $more);
Posted by: Guest on January-04-2021

Code answers related to "getting all the content from the post wordpress"

Browse Popular Code Answers by Language