Category Template not paginating.
-
I have the generic category code set up as:
<?php $args = array ( 'category' => ID, 'posts_per_page' => 5); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> //Style Posts here <?php endforeach; ?>
And the styled posts are very simple:
<div class="col-md-6"> <a href="<?php the_permalink(); ?>"><img src="<?php echo uf(person_image); ?>" width="100%"></a> </div> <div class="col-md-6 text-right"> <h3 style="margin-top:0px;"><em><?php echo uf(project); ?></em> Designer<br /></h3> <h1 style="margin:5px 0px;font-weight:bold;"><?php the_title(); ?></h1> <p><?php echo the_date(); ?></p> <p><a href="<?php the_permalink(); ?>" class="btn btn-primary btn-lg btn-block" role="button">READ THE FIVER >></a></p> </div> <div class="clearfix"></div> <hr>
But when I click to the nav links on the bottom, the next page shows exactly the same posts as the first.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Category Template not paginating.’ is closed to new replies.