Last active
May 16, 2016 04:55
-
-
Save richerimage/ffe76bf1a1d6d08ec452625e8d9887cc to your computer and use it in GitHub Desktop.
Get post/Page content by ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$id = '123'; | |
echo get_post_field('post_content', $id); | |
// Want it formatted? | |
echo apply_filters('the_content', get_post_field('post_content', $id)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment