Broken pagination on blog page
-
The pagination on blog page will show the same posts regardless of which page is loaded.
The areas I suspect of being the problem is as follows :
get_header(); $have_posts = false; ?> <?php $posts_per_page = get_post_meta(get_the_ID(),'number_of_items',true); if (!$posts_per_page) { $posts_per_page = get_option('posts_per_page'); } $args = array( 'numberposts' => '', 'posts_per_page' => $posts_per_page, 'offset' => 0, 'cat' => '', 'orderby' => 'date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'post', 'post_mime_type' => '', 'post_parent' => '', 'paged' => $paged, 'post_status' => 'publish' ); query_posts( $args ); ?>
The loop is here :
<div id="blog-grid"> <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content-grid', get_post_format() ); ?> <?php endwhile; ?> <?php $have_posts = true;?> <?php else : //No posts were found ?> <?php get_template_part( 'no-results' ); ?> <?php endif; ?> </div> <?php ts_the_crystal_navi(); ?> </div>
Crystal navi is not somthing I am familiar with but replacing it with the wordpress next didn’t not fix the issue.
Any obvious in the above that would result in these problems?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Broken pagination on blog page’ is closed to new replies.