pagination problem
-
the code
echo ''; $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post','paged' => $paged, 'posts_per_page' => '6' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); echo ''; the_post_thumbnail('thumbnail'); echo ''; the_title(); echo ''; the_time('l jS F Y'); echo ''; the_excerpt(); echo '</div></div>'; endwhile; echo '</div>'; echo ''; $nav = get_the_posts_pagination( array( 'prev_text' => __( '', 'textdomain' ), 'next_text' => __( '', 'textdomain' ), 'screen_reader_text' => __( 'A' ) ) ); $nav = str_replace('A', '', $nav); echo $nav; echo '';
The problem
no pagination links appear in the div blogPagination, the 6 blogs display finecan anyone spot an error please?
The blog I need help with is shop.howardnurseries.co.uk.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘pagination problem’ is closed to new replies.