Search by ACF Field in Custom Post Type

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.