wordpress get text of wordpress post

Solutions on MaxInterview for wordpress get text of wordpress post by the best coders in the world

showing results for - "wordpress get text of wordpress post"
Luis
24 Jul 2017
1<?php 
2$my_postid = get_the_ID(); // Get Current Page ID or just use the number like 315
3//get_the_ID() gets the page/post id of the current page/post. We use it here to make it dynamic in templates / shortcodes
4$content_post = get_post($my_postid);
5$content = $content_post->post_content;
6$content = apply_filters('the_content', $content);
7$content = str_replace(']]>', ']]>', $content);// Strip Symbols
8echo $content; // Outputs Content
9?>
10