Skip to content

Instantly share code, notes, and snippets.

@Dare-NZ
Created May 9, 2013 01:05
Show Gist options
  • Save Dare-NZ/5544842 to your computer and use it in GitHub Desktop.
Save Dare-NZ/5544842 to your computer and use it in GitHub Desktop.
Mini wp loop
<?php get_header(); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<h1><?php the_title() ?></h1>
<?php the_content() ?>
<?php endwhile; ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment