Pagination Issues
-
Hi Gang,
I’m going nuts trying to figure out why my pagination isn’t showing up. I’ll set the scene:
I have a custom page template named
/* Template Name: Page - Photography */
. In this page I have a custom query set up for all of my photography posts. They aren’t custom post types but just plain ole posts. My new query is as follows:$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $photography = new WP_Query(array( 'post_type' => 'post', 'posts_per_page' => 16, 'orderby' => 'date', 'paged' => $paged ));
Then I have my custom loop with all of its glorious code. Now, out of the loop I have this under my content:
the_posts_pagination( array( 'screen_reader_text' => __( 'To view more, click the links below' ), 'mid_size' => 2, ) );
Now, this DOES work on my blog page, but that’s a custom post type and under an archive template. Can someone please figure out what I’m doing wrong and why it’s not showing up at all? ARGH!
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Pagination Issues’ is closed to new replies.