WPSC Pagination not working in search results
-
I’m using the followng pagination code on the search.php
$big = 999999999999999999; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages) );
The problem is that while I cycle through the results (e.g. page 1) when I get to page 3 for some reason the template lands on the products page. I’m not sure how or why this is happening.
I tried this fix but no luck and I don’t believe this was the root of the problem. Can anyone shed some light on what could be happening?
- The topic ‘WPSC Pagination not working in search results’ is closed to new replies.