Skip to content

Instantly share code, notes, and snippets.

@alwerner
Last active May 21, 2020 18:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alwerner/dda1fb09a15297ca4e5b to your computer and use it in GitHub Desktop.
Save alwerner/dda1fb09a15297ca4e5b to your computer and use it in GitHub Desktop.
<?php $page_contents = get_post();
// use print_r if you want to see everything in the array
// print_r($page_contents);
$page_data = $page_contents->post_content; ?>
<div><?php echo $page_data ?></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment