Skip to content

Instantly share code, notes, and snippets.

@zenman
Created February 19, 2014 18:27
Show Gist options
  • Save zenman/9098316 to your computer and use it in GitHub Desktop.
Save zenman/9098316 to your computer and use it in GitHub Desktop.
Pull a different page's content within the loop.
<?php
$page_id = 5;
$page_data = get_page( $page_id );
$content = apply_filters('the_content', $page_data->post_content);
$title = $page_data->post_title;
echo $content;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment