Home › Forums › ACF PRO › Relationship between 3 CPTs › Reply To: Relationship between 3 CPTs
If I understand what you war doing then you do not need the third relationship. You only need:
Universities <=> Faculties
Faculties <=> Programs
if you want to get Universities from programs you get the faculties relationship and then get the Universities relationship form the faculties posts
if you want to get the programs for universities then you get the faculties and then get the programs for each faculties.
If you really want to have it circular then you need to have 3 relationship fields and each post type will need to have 2 fields where you select the other 2 post types separately.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.