Forums Forums Search & Filter Pro Search by ACF Field in Custom Post Type

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #257884

    Hi, I’m new to Search & Filter Pro. I have created two post types “Products” and “solutions” A product will have a taxonomy that relates it to a solution. On the solutions page I want to show related products.

    My idea was to use this plugin and then have an ACF field “related_category” that the user would pick to show related products to that solution when creating the post. I’m running into two problems:

    1. I don’t want to create a filter for each solution. I want it to be the same for all solutions and the only change (dynamically) would be the category via the chosen ACF.

    2. I want to set the filter to be equal to the value of the ACF category chosen.

    Is this possible?

    Trevor
    #257968
    This reply has been marked as private.
    Anonymous
    #258014
    This reply has been marked as private.
    Trevor
    #258178
    This reply has been marked as private.
    Trevor
    #258226
    This reply has been marked as private.
    Trevor
    #258614
    This reply has been marked as private.
    Ross Moderator
    #258808
    This reply has been marked as private.
    Anonymous
    #258810

    Hey Trevor, I couldn’t get it work the way I wanted either. I coded a WPQuery to do the job and a custom function to output the HTML and the data.

    For future releases, this would be a great feature for developers to be able to assign a related post type via ACF and add the search to a custom post type template via page builder and then that could be populated dynamically based on the post type and ACF field of related posts.

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