- This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Use with Posts Per Page
I have a custom post type archive in place where I am using Search and Filter Pro. It works great as long as there is no ‘posts_per_page’ argument specified. However, I have a drop down select box to allow the user to select the number of ‘posts per page’ they want to view. This requires either ‘query_posts’ or ‘WP_Query’, either of which allows for the ‘posts_per_page’ argument. When I use either of these with filter though it shows all of the results for each category filter item.
Can ‘query_posts’ or ‘WP_Query’ be used with Search and Filter Pro?
Thanks
Hey Ian
Unfortunately you can’t use it on custom queries.
If you wanted to hook in to the queries themselves you could use pre_get_posts.
Also when you use the shortcode for displaying your results (as opposed to archive) you should be more easily be able to customise the results (as they are not full page templates – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax)
Thanks
Sorry just re-read your question again (after a few days) – its going to be really hard to pass in additional arguments to the query based on user selection – I feel that this is an important feature to have so I’ll look to add it in an upcoming update.
Thanks