Results per page with query data

Forums › Forums › Search & Filter Pro › Results per page with query data

Tagged: 

Viewing 7 posts – 1 through 7 (of 7 total)
  • Anonymous
    #210353

    I used $searchandfilter->get(1123)->current_query() to access the query data since I needed to use twig template that will accept the query to generate a styled list of posts. But, it seems like result per page feature isn’t working with that query data. Is there a way to accomplish this?

    Trevor
    #210397

    What data are you passing to Twig? Is it a list of Post IDs?

    Anonymous
    #210521
    This reply has been marked as private.
    Trevor
    #210527

    Are you trying to pass ALL posts in one go, in which case, what are you setting the Post Per Page to in the form settings?

    Anonymous
    #210543

    I was hoping that current_query() will also reflect the filters/pagination when I found the function; but I figured using result template might be easier to establish everything I need.

    Thank you so much for your help!

    Trevor
    #210546

    Is this issue now resolved?

    Anonymous
    #210548

    Yes, everything works perfectly with the template.
    Thanks again 🙂

Viewing 7 posts – 1 through 7 (of 7 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.