Skip to content

Instantly share code, notes, and snippets.

@hsquareweb
Created June 28, 2013 15:28
Show Gist options
  • Select an option

  • Save hsquareweb/5885553 to your computer and use it in GitHub Desktop.

Select an option

Save hsquareweb/5885553 to your computer and use it in GitHub Desktop.
WP: Pull Specific Page
<?php $recent = new WP_Query("page_id=87"); while($recent->have_posts()) : $recent->the_post();?>
<?php the_post_thumbnail('full'); ?>
<div>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment