Skip to content

Instantly share code, notes, and snippets.

@Gaya
Created January 28, 2015 14:50
Show Gist options
  • Save Gaya/3e3d3b2642856eafd581 to your computer and use it in GitHub Desktop.
Save Gaya/3e3d3b2642856eafd581 to your computer and use it in GitHub Desktop.
One of the many reasons I hate WordPress development
global $post;
$post = get_post($id);
setup_postdata($post);
global $more;
$more = 1;
$content = get_the_content(false);
@Gaya
Copy link
Author

Gaya commented Jan 28, 2015

It gets the contents of a post and everything after the more tag.

@mheesters
Copy link

(╯°□°)╯︵ ┻━┻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment