Forums Forums Search & Filter Pro Pagination doesn't work

Viewing 3 posts - 1 through 3 (of 3 total)
  • Ross Moderator
    #22626

    Hey Katarzyna

    I’m not sure what could be causing that, possibly another plugin interfering with the pagination process.

    You could try using the wp-page-navi plugin instead as I’ve known that to work.

    In S&F 2.0 I’ve rewritten how pagination works quite a bit so again, this may overcome your issues – I can send you the beta version to test if you like?

    Thanks

    Anonymous
    #22666

    I’ve managed to get pagination to work. In “Set a slug” option I added a slug “filter” and pagination started working.
    But there is another problem – I want to display the number of retrieved items in the parenthesis next to the “Sklep” title. It works on my shop page, but when I enter the filter, it shows only 15 (number of items visible on the current page) – it doesn’t show all the items.
    Maybe the plugin provides some function that counts retrieved items?
    My function counting posts looks like this:

    function skg_get_posts_count() {
        global $wp_query;
        return $wp_query->post_count;
    }
    Anonymous
    #22667

    After I wrote to you, I have immediately found a solution. I have used this code:

    global $wp_query;echo $wp_query->found_posts;

    So at the moment that would be all, thank you very much for the quick response 🙂

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