WordPress Pagination on Tags Template
-
I’m working on a pagination option for my tag and categories templates but I can’t figure it out. I’m assuming it’s an argument that I’m missing but I have tried to the extent of my knowledge and am getting bored of Googling around/trial and error.
My url format is currently:
https://xxx.com/?tag=developed
https://xxx.com/?tag=developed&paged=2My pagination code is:
$wp_query->query('showposts=2'.'&paged='.$paged.'&tag='.$tag.'');
echo paginate_links( array( 'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'prev_text' => __('Previous'), 'next_text' => __('Next'), 'type' => 'list' ) );
This doesn’t work on the category index either, but the code is the same for my blog index and the pagination does work there. Any support is appreciated
-Jake
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WordPress Pagination on Tags Template’ is closed to new replies.