JQuery Pagination
-
Hello, I am trying to get pagination to appear so that people can click on different page numbers to see all posts in the query.
This is my current code, what am I missing?
<?php
global $post;
$args = array( ‘post_count’ => 12, ‘posts_per_page’ => 4, ‘category_name’ => ‘home-feed’ );$myposts = get_posts( $args );
foreach ( $myposts as $post ) : setup_postdata( $post );
?><div class=”row post-stream”>
<div class=”col-md-3 col-sm-4 col-xs-12″>
“><?php echo get_the_post_thumbnail( $post_id, ‘large’ ); ?>
</div>
<div class=”col-md-9 col-sm-8 col-xs-12″>
<div style=”min-height: 135px;”>
<h4 style=”margin-top: 0;”>
“><?php the_title(); ?>
</h4>
<div class=”feed-date-tags”>
<?php the_date(); ?>
</div>
<p>
<?php echo excerpt(45); ?>
</p>
</div>
“>Read More
</div>
</div>
<hr>
<?php endforeach;
wp_reset_postdata();?>The page I need help with: [log in to see the link]
- The topic ‘JQuery Pagination’ is closed to new replies.