Home › Forums › ACF PRO › Add a relationship dynamically › Reply To: Add a relationship dynamically
OK, sorted this.
I still don’t see a way of doing this via the API without using the third-party plugin which seems to be unmaintained. Am I missing something? Is this something in development?
I have used advancedcustomfields.com/resources/update_field/ and this seems to give me what I need for now. I redirect to my new “Session” and add the ID of the parent “Project” to the URL (EG: ?parent=67) and use GET to pass this to the update_field function.
Cheers
Rob
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.