Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Problem with pagination

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Legrand Julien
    #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

    Trevor Moderator
    #241687

    Are you able to send me a live link/URL to your search page so I can take a look?

    Can you let me see the template file, maybe upload it to a file sharing site and share the link with me?

    Legrand Julien
    #241715
    This reply has been marked as private.
    Legrand Julien
    #241719
    This reply has been marked as private.
    Legrand Julien
    #241759

    Under display results tab, setting is
    Display results method: Custom (last item in the select box)

    My “recherche” page is set with this template (the one in my last message)

    Thanx

    Legrand Julien
    #241774

    Found 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' => __('&laquo;'),
    							'next_text' => __('&raquo;'),
    							'paged' => $paged,
    						));
    
    						?>
    						</div>

    But not sure it the best way to do it…

    Trevor Moderator
    #241779

    Ah. Yes, often, if you are calling an external function, this problem happens, and bringing it into the template fixes it. It looks OK to me. Is it OK to close this thread for now?

    Legrand Julien
    #241785

    ok, thanx

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

The topic ‘Problem with pagination’ is closed to new replies.