Forums › Forums › Search & Filter Pro › posts_per_page is not working
Tagged: infinite scroll, Load more, posts_per_page, V3
- This topic has 12 replies, 3 voices, and was last updated 4 years, 4 months ago by Trevor.
-
Anonymous(Private) August 19, 2020 at 11:50 am #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(Private) August 19, 2020 at 12:15 pm #256603Post 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.
-
AuthorPosts