Forums Forums Search & Filter Pro Pagination broken

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #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,
    Khashy

    Ross Moderator
    #9031

    Hey 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
    #9765

    Hey 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?
    Thanks

    Ross Moderator
    #9844

    Hey 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
    #9874

    Hey 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

    Ross Moderator
    #9876

    Ah great glad its up and running ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)