Home › Forums › Backend Issues (wp-admin) › Relational Field: Can I get a field from another CPT? › Reply To: Relational Field: Can I get a field from another CPT?
Hi @rafael401
The relationship field will only be able to save data about a post_id, so unfortunately what you want to do is not possible with this field.
Essentially, what you are describing is a relationship from a render to a building with metadata on the connection. The metadata states the room in the building.
I think a solid solution will be to use the posts 2 posts plugin instead of the relationship field.
It is a very flexible plugin which requires good PHP knowledge, but has good documentation so it’s not too hard to get started with it.
That plugin will allow you to create these connections with the extra ‘meta’ data on each connection.
Hope that helps.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.