Forums › Forums › Search & Filter Pro › Filter via ACF Relationship field
Tagged: acf relationship
- This topic has 4 replies, 3 voices, and was last updated 1 year, 6 months ago by Anonymous.
-
Anonymous(Private) February 1, 2021 at 12:50 pm #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
StefanTrevor(Private) February 1, 2021 at 2:22 pm #274782I 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(Private) June 14, 2023 at 9:47 am #276821Hey 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?
-
AuthorPosts