Initiate the loop before the title is called on pages. Failing to do so causes checks that run on the loop's status to fail.
This commit is contained in:
6
page.php
6
page.php
@@ -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; ?>
|
||||
@@ -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>')); ?>
|
||||
Reference in New Issue
Block a user