posts_per_page is not working

Forums › Forums › Search & Filter Pro › posts_per_page is not working

Viewing 10 posts – 1 through 10 (of 13 total)
  • Anonymous
    #256591

    I’m not able to get the posts to limit per page.
    If I add the search_filter_id in the args array the posts_per_page arg is ignored?
    Do I have to do anything else to enable this function?

    <?php $posts_per_page = 2;
    $args = [ 
        'orderby' => 'date',
        'post_type' => 'projects', 
        'posts_per_page' => 2,
        'search_filter_id' => 220
        ];
        $the_query = new WP_Query( $args );
    
    ?>

    Furthermore I want to add a Load more option.
    In other questions I can see that you are not supporting this. Is there any way to make this possible anyway with a custom code or plugin? Do you have any suggestions?

    Thank you

    Trevor
    #256603

    Post per page will need to be set in our form settings, here:

    https://www.screencast.com/t/c5aS7P5K

    As our form settings override what is in the arguments.

    I have tried many times to get Load More working, but so far I have been unable to. For now we can offer only normal pagination or infinite scroll.

    It should be coming for V3, due in a few months.

    Anonymous
    #256613
    This reply has been marked as private.
    Trevor
    #256623
    This reply has been marked as private.
    Anonymous
    #257126
    This reply has been marked as private.
    Trevor
    #257161
    This reply has been marked as private.
    Anonymous
    #257209
    This reply has been marked as private.
    Trevor
    #257253
    This reply has been marked as private.
    Anonymous
    #257273
    This reply has been marked as private.
    Trevor
    #257275
    This reply has been marked as private.
Viewing 10 posts – 1 through 10 (of 13 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.