Result pagination
-
I add such code for pagination
$big = 999999999; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', //'base' => esc_url_raw( add_query_arg( 'product-page', '%#%', false ) ), //'format' => '?product-page=%#%', 'current' => max( 1, get_query_var('paged') ), 'type' => 'list', 'prev_text' => __(''), 'next_text' => __(''), 'total' => $search_res->max_num_pages ) ); wp_reset_query();
Pagination links have such url
example.com/page/2/?s=гру&post_type=product&dgwt_wcas=1#038;post_type=product&dgwt_wcas=1
But if click it, I will have 404. I think it is error, beacause of example.com/page/2/ – no such page. Or what the problem and how I can solve it?
- The topic ‘Result pagination’ is closed to new replies.