• 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)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagnation Not Working’ is closed to new replies.