We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb8093 commit 2d1c778Copy full SHA for 2d1c778
page.php
@@ -1,2 +1,4 @@
1
-<?php get_template_part('templates/page', 'header'); ?>
2
-<?php get_template_part('templates/content', 'page'); ?>
+<?php while (have_posts()) : the_post(); ?>
+ <?php get_template_part('templates/page', 'header'); ?>
3
+ <?php get_template_part('templates/content', 'page'); ?>
4
+<?php endwhile; ?>
templates/content-page.php
@@ -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>')); ?>
0 commit comments