Title: Pagnation Not Working
Last modified: August 31, 2016

---

# Pagnation Not Working

 *  [Revel Design](https://wordpress.org/support/users/revel-design/)
 * (@revel-design)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/pagnation-not-working/)
 * Hello, I can not seem to get my pagnation working on the blog template php.
 * My code is as follows:
 *     ```
       <?php
       /**
        * Template Name: Blog
        */
       get_header(); ?>
       <div class="clear"></div>
   
       </header> <!-- / END HOME SECTION  -->
   
       <div id="content" class="site-content">
   
       	<div class="container">
   
       		<div class="content-left-wrap col-md-9">
   
       			<div id="primary" class="content-area">
   
       				<main id="main" class="site-main" role="main">
       					<?php
       					$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       					$wp_query = new WP_Query( array('post_type' => 'post', 'showposts' => '15', 'paged' => $paged) );
   
       					if( $wp_query->have_posts() ):
   
       						while ($wp_query->have_posts()) : 
   
       							$wp_query->the_post();
       							get_template_part( 'content', get_post_format() );
   
       						endwhile;
   
       					endif;
   
       					zerif_paging_nav();
   
       					wp_reset_postdata();
       					?>
       				</main><!-- #main -->
   
       			</div><!-- #primary -->
   
       		</div><!-- .content-left-wrap -->
   
       		<div class="sidebar-wrap col-md-3 content-left-wrap">
   
       			<?php get_sidebar(); ?>
   
       		</div><!-- .sidebar-wrap -->
   
       	</div><!-- .container -->
       <?php get_footer(); ?>
       ```
   
 * The “Older Posts” link brings up a 404 error page not found. Any help would be
   greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Alexandra](https://wordpress.org/support/users/alexandrastan001/)
 * (@alexandrastan001)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/pagnation-not-working/#post-6930506)
 * Hello,
 * Can you share the link to your website so that we can take a look?
 * Best regards,
    Alexandra
 *  Thread Starter [Revel Design](https://wordpress.org/support/users/revel-design/)
 * (@revel-design)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/pagnation-not-working/#post-6930574)
 * Hello, I am still unable to solve the issue I am having with the pagnation… the
   link is [http://revel.design/blog](http://revel.design/blog)
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/pagnation-not-working/#post-6930579)
 * Hi there,
 * Could you lease give us more details about this issue? Thank you. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Pagnation Not Working’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/zerif-lite/1.8.5.49/screenshot.
   png)
 * Zerif Lite
 * [Support Threads](https://wordpress.org/support/theme/zerif-lite/)
 * [Active Topics](https://wordpress.org/support/theme/zerif-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/zerif-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/zerif-lite/reviews/)

## Tags

 * [blog template](https://wordpress.org/support/topic-tag/blog-template/)
 * [pagnation](https://wordpress.org/support/topic-tag/pagnation/)

 * 3 replies
 * 3 participants
 * Last reply from: [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/pagnation-not-working/#post-6930579)
 * Status: not resolved