Home › Forums › Feature Requests › Relationship Fields set as $post->post_parent › Reply To: Relationship Fields set as $post->post_parent
Not sure if you’re still looking for help with this or not, but I think all that is necessary is a way to set the parent post_id of the child and WP does the rest. I’m looking at this for future projects myself.
My thinking is to create an acf/save_post action http://www.advancedcustomfields.com/resources/acfsave_post/ that runs after the post has been saved and after the ACF action (priory > 10), get the value from the field and update the post to set the parent.
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.