Filter via ACF Relationship field

Forums › Forums › Search & Filter Pro › Filter via ACF Relationship field

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #274755

    First of all I want to say this is an incredible Plugin!

    My question: In my data model I have Projects and Institutes. In the Project I have a taxonomy field for ProjectType.

    There is a bidirectional relationship between these Posttypes: In Project there is a ACF Relationship field Institute (multivalue). And Institue contains an ACF Relationship field Projekt (also multivalue).

    I want to be able to filter a list of Institutes by values of Projekttype. So I want to only show Institutes that have a relationship with a Project that has a certain value in ProjectType.

    Can this be done? If there are solutions that require coding, that is also ok..

    Thanks
    Stefan

    Trevor
    #274782

    I think I understand. The field in ACF should be set as a Post Object field, set to the post type you want. Like this:

    https://www.screencast.com/t/486SuRan9

    You can then add this in a form as a Post Meta field object, but be careful which key name you select. Make sure it does NOT start with an underscore _.

    Anonymous
    #276821

    Hey Trevor,

    Im using the exact same setup, but I want to show an ACF Field of that linked post.
    In my opinion it shouldnt be that complicated, because your plugin already got the post Id and got the post title of that post. The only thing I have to manipulate is not to get the post title, but the acf field.

    Is their a solution to achieve that?

    Trevor
    #276823

    Hi Sebastien

    These forums are now closed to support queiries.

    Can you open a ticket on our new support system (links are at the top of the page).

    Anonymous
    #276825

    Sure, just submitted the ticket 🙂

Viewing 5 posts – 1 through 5 (of 5 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.