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:
@@ -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