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 while (have_posts()) : the_post(); ?>
|
||||||
<?php get_template_part('templates/content', 'page'); ?>
|
<?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 the_content(); ?>
|
<?php wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>')); ?>
|
||||||
<?php wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>')); ?>
|
|
||||||
<?php endwhile; ?>
|
|
||||||
Reference in New Issue
Block a user