Thanks! That will help me a bit!
I forgot to mention that I wanted it in Admin, not front-end.
As for now, I’m trying to work with the load-field hook.
On the edit-post screen, I’m trying to load all pages that have relationship fields, and mark the ones where the current post is related.
Now, the relationship is determined from the page. As in the page has the relationship field and adds posts to it.
I wanted a relationship field on the post to show what pages it is attached to but it seems like it is making a new relationship of its own.
Does that make it more clear? =)
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!
© 2022 Advanced Custom Fields.