Skip to content

Instantly share code, notes, and snippets.

@nroca
Created May 26, 2014 15:54
Show Gist options
  • Save nroca/0b308dafc07a180a7604 to your computer and use it in GitHub Desktop.
Save nroca/0b308dafc07a180a7604 to your computer and use it in GitHub Desktop.
Wordpress single page loop.
<?php $recent = new WP_Query("page_id=21"); while($recent->have_posts()) : $recent->the_post();?>
<!-- content -->
<?php endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment