Forums › Forums › Search & Filter Pro › Pagination broken
Tagged: pagination
- This topic has 5 replies, 2 voices, and was last updated 9 years, 10 months ago by Ross.
-
Anonymous(Private) December 12, 2014 at 9:03 am #8984
Hey,
I’ve installed search and filter pro in this website (this a test version) http://shamloo.fr/liberty-auto/recherche-vehicule/ whith this settings :- post type : custom post type “vehicules” (ACF custom post type);
- result per page : 9;
- load result by ajax
- content selector : #content;
- pagination selector : .pagination a;
- use a custom template for results : archive-vehicules.php;
- slug : recherche-vehicule;
my pagination links are created with this wordpress fonction :
<div class="pagination"><?php echo paginate_links(); ?></div>
I’m stuck, I can’t see what’s wrong ?
Thanks,
KhashyRoss Moderator(Private) December 13, 2014 at 2:29 pm #9031Hey Khashayar
You pagination looks fine on page load but not after…
There is another problem I noticed, so lets fix that first and see if they are related…
Basically, your content selector is
#content
– however, your content selector should really only contain your results.In this case, the content selector contains the actual search form itself – which can cause issues.
So I would recommend changing this selector by wrapping just your results in a div with a specific ID and referencing this.
Does that make sense?
Thanks
Anonymous(Private) January 5, 2015 at 9:58 am #9765Hey Ross,
First I wish you an Happy New Year ๐
Then let’s go back to my pagination problem.
I’ve made changes that you recommended and same result.
I’ve wrapped results in a div called #aff_vehicules. The pagination looks fine on first page but the pagination link for page 2 go to<a class="page-numbers" href="http://shamloo.fr/liberty-auto/recherche-vehicule/page/2">2</a>
Searches parameters doesn’t seem to be integrate to pagination links.Do you have an idea?
ThanksRoss Moderator(Private) January 6, 2015 at 6:03 pm #9844Hey Khashayar
What version of the plugin are you using? In the latest update I changed the way pagination is working so this may fix some issues for you ๐
Thanks
Anonymous(Private) January 7, 2015 at 8:26 am #9874Hey Ross,
I’ve made last uprage and replace<?php echo paginate_links(); ?>
that don’t work, by wp-pagenavi plugin. (I see you use it in your results.php plugin page)
Because my results template as a custom post archive template have a special query that I couldn’t make work whith paginate_links function.
So now my problem is solved.<div class="pagination"><?php wp_pagenavi(); ?></div>
Thanks
-
AuthorPosts