Calling Blog Posts on Pages
-
The code below works on the index.php page but not when I put it in a single page template. Does any body know why?
<?php get_header(); // Loads the header.php template if (have_posts()) : ?> <div id="blog-wrap" class="blog-wrap-wide blog-isotope clearfix"> <?php // Loop through each post while (have_posts()) : the_post(); get_template_part( 'content', get_post_format() ); endwhile; ?> </div><!-- /post --> <?php wpex_pagination(); // Paginate your posts endif; get_footer(); //get template footer ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Calling Blog Posts on Pages’ is closed to new replies.