Forums Forums Search & Filter Pro Pagination won't display

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #9130

    So I already made one template that works great with a custom-post-type archive, pagination displays and works great with AJAX.

    This other page I’m doing is for news items, but the pagination won’t display at all.
    The settings and files are almost identical, with the exception of the markup of the listings.

    Search & Filter Settings

    Working page
    This page is not working

    I’m not sure what’s wrong here.

    Another issue I’m having with this page is that the masonry script won’t work after I use any filters to change the results.

    Ross Moderator
    #9166

    Hey Stian

    The only time pagination won’t show is if you don’t have more results – could you add this to your template file so we can see how many results the plugin has:

    <?php
        global $wp_query;
        echo "Results found: ".$wp_query->post_count."<br />"; 
    ?>

    If the post count is below results per page then you will not see pagination.

    In regards to masonry – take a look at the first question in our FAQs – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/

    Thanks

    Anonymous
    #9206

    Hi Ross

    When changing the amount of posts per page in the settings for the searchform, the page displays the correct number of posts for that page, but pagination won’t display. We have almost 300 published posts.

    Adding your snippet to the template gives me this result:
    Results found: 1

    Here’s the page template file and this is the search & filter template.

    Ross Moderator
    #9374

    Hey Stian

    So the pagination is not showing because it thinks there is only 1 result – which requires no pagination – so I think the problem here is, why does it think there is only one result?

    I’ve just updated the plugin today so please install the latest update to see if that fixes anything.

    Also, I would take a careful look to see if you have included/excluded anything which is affecting your search results.

    Let me know

    Thanks

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