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)