Created
January 28, 2015 14:50
-
-
Save Gaya/3e3d3b2642856eafd581 to your computer and use it in GitHub Desktop.
One of the many reasons I hate WordPress development
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
global $post; | |
$post = get_post($id); | |
setup_postdata($post); | |
global $more; | |
$more = 1; | |
$content = get_the_content(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It gets the contents of a post and everything after the
more
tag.