Forums Forums Search & Filter Pro Use with Posts Per Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #10347

    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

    Ross Moderator
    #10476

    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

    Ross Moderator
    #10477

    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

Viewing 3 posts - 1 through 3 (of 3 total)