Forums › Forums › Search & Filter Pro › Problem with pagination
Tagged: pagination
- This topic has 7 replies, 2 voices, and was last updated 4 years, 7 months ago by Anonymous.
Viewing 8 posts - 1 through 8 (of 8 total)
-
Anonymous(Private) April 27, 2020 at 10:22 pm #241658
Hi,
I want to use ajax pagination but it doesn’t work, when I click on page 2, I stay on the same page. I looks like the urls in the href are not the good ones (different from the demo on your website)
My pagination HTML code looks like this :
<div class="pagination"> <div class="wp-pagenavi" role="navigation"> <span class="pages">Page 1 sur 2</span><span aria-current="page" class="current">1</span><a class="page larger" title="Page 2" href="https://www.mydomain.fr/recherche/page/2/">2</a><a class="nextpostslink" rel="next" href="https://www.mydomain.fr/recherche/page/2/">»</a> </div> </div>
My settings for the “Pagination selector” is “.pagination a”
Could you help me ?
Thanx
Anonymous(Private) April 28, 2020 at 2:10 pm #241774Found a solution by manually replacing my pagination with this (it adds the query string “sf_paged”)
<div class="pagination"> <?php $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; echo paginate_links(array( 'base' => add_query_arg('sf_paged', '%#%'), 'format' => '', 'prev_text' => __('«'), 'next_text' => __('»'), 'paged' => $paged, )); ?> </div>
But not sure it the best way to do it…
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)