pagination doesn't work

Forums › Forums › Search & Filter Pro › pagination doesn't work

Tagged: 

  • This topic has 2 replies, 3 voices, and was last updated 7 years ago by Anonymous.
Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #199331

    Hi again!

    I’m fighting for days with this plugin with diferent issues. And have even fear to updated after trying for several times and got finally a response to wait until it gets with no trouble anymore. Jesus!

    Now I find myself that pagination doesn’t work.

    I’ve wrote this:

    <?php $args = array(
    	'base'               => '%_%',
    	'format'             => '?paged=%#%',
    	'total'              => 1,
    	'current'            => 0,
    	'show_all'           => false,
    	'end_size'           => 1,
    	'mid_size'           => 2,
    	'prev_next'          => true,
    	'prev_text'          => __('« Previous'),
    	'next_text'          => __('Next »'),
    	'type'               => 'plain',
    	'add_args'           => false,
    	'add_fragment'       => '',
    	'before_page_number' => '',
    	'after_page_number'  => ''
    ); ?>
    
    <div class="pagination"><?php echo paginate_links( $args ); ?></div>

    Inside <main id="main"></main>

    On Pagination selector: .pagination

    After trying diferent kind of paginations. No one works. Have read the documentation, but clearly it doesn’t explain much:

    “Pagination Selector – So Search & Filter can recognise your pagination and updated the results with ajax, you must enter a CSS selector that matches your pagination – its must be on the anchor tags itself so it can grab the href attributes and fetch the results – ie: .pagination a”

    Am I missing something? Sorry but it’s like the fourth issue that I encounter whithout really solving any of them as going around.

    Thanks

    Trevor
    #199355

    If your are using Ajax, for the pagination to work, the pagination container must be inside the Ajax container.

    Anonymous
    #221012

    this was a life saver. i didn’t find that to be obvious. thanks for this.

Viewing 3 posts – 1 through 3 (of 3 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.