Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Template Name: Page Blog */
- ?>
- <?php get_header(); ?>
- <div class="container">
- <div id="content">
- <div id="main">
- <?php
- $current_page = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $args = array(
- 'posts_per_page' => 6, // Change this to however many posts per page they want.
- 'paged' => $current_page
- );
- query_posts( $args );
- ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php get_template_part('content'); // currently set to standard layout. If they want grid we'll need to add in the <ul class="sp-grid"> as well. ?>
- <?php endwhile; ?>
- <?php solopine_pagination(); ?>
- <?php endif; ?>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement