Merge pull request #1056 from joshlevinson/master

Initiate the loop before the title is called on pages.
This commit is contained in:
Ben Word
2014-07-03 11:40:01 -05:00
2 changed files with 6 additions and 6 deletions

View File

@@ -1,2 +1,4 @@
<?php get_template_part('templates/page', 'header'); ?>
<?php get_template_part('templates/content', 'page'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('templates/page', 'header'); ?>
<?php get_template_part('templates/content', 'page'); ?>
<?php endwhile; ?>

View File

@@ -1,4 +1,2 @@
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>')); ?>
<?php endwhile; ?>
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>')); ?>