Forums Forums Search & Filter Pro Customize posts given to archive loop

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #114312

    Hello :)!

    I modified the main query for the posts of the custom post type archive with the filter ‘pre_get_posts’ changing the ‘post__in’ array of the query. The filtering is working, but the count number isn’t correct.

    Maybe it’s because of the search&filter cache? Can you tell me how to modify the posts delivered to the search form so that the count is working? It seems that setting my own posts in “$query_args[‘post__in’]” within a “sf_edit_query_args”-filter is not working. What do I wrong?

    And when V3 is coming?

    Thank you!

    Trevor
    #114392

    I think I need more information to understand what you are doing. To start with, do you have a link/URL for the search page?

    Anonymous
    #114924
    This reply has been marked as private.
    Trevor
    #114930

    I think I can see what you are doing. You have your own location filter using lat and lng but want to apply these to our filter. Ideally, you would want our plugin to have geo search, but that is not (yet) a feature. Also, it is not possible (yet) to add your own fields to our search form.

    As you have already guessed or read, both features are part of our plans for V3, which is still some months away.

    At this time, you have available only the actions and filters shown here:

    https://www.designsandcode.com/documentation/search-filter-pro/action-filter-reference/

    Anonymous
    #115131

    Okay 🙂
    The plugin gets the posts for filtering through the WP query, right? I changed that query and it’s working. But the counting numbers are not working. where do they get the post count from?

    Trevor
    #115150
Viewing 6 posts - 1 through 6 (of 6 total)