Forums Forums Search & Filter Pro Searching based on multiple CPT

Viewing 7 posts - 11 through 17 (of 17 total)
  • Anonymous
    #241994

    Ross,

    Thanks for the reply. I will take a look at the ACF post today. Please do share the filter for the custom ordering of results.

    Ross Moderator
    #242002

    Hi Keith

    The filter is sf_apply_filter_sort_post__in

    $post__in = apply_filters('sf_apply_filter_sort_post__in', $this->query_args['post__in'], $this->query_args, $this->sfid);

    Which takes an array of post IDs (the results S&F has found) and must return those posts.

    You’ll then have to disable sorting and sort by post__in in the query (actually, you might be able to leave this set as “default” ordreing in your search form options), you can use the sf_edit_query_args filter to do this.

    If you’re going to follow the link above exactly, the JOIN option might work for you anyway, but there’s two potential approaches for you to try.

    Thanks

    Anonymous
    #242592
    This reply has been marked as private.
    Ross Moderator
    #242621
    This reply has been marked as private.
    Anonymous
    #242680
    This reply has been marked as private.
    Anonymous
    #242734
    This reply has been marked as private.
    Ross Moderator
    #242791
    This reply has been marked as private.
Viewing 7 posts - 11 through 17 (of 17 total)