Home › Forums › Add-ons › Repeater Field › On save / update CPT A update repeater fields CPT B with Date custom post type A › Reply To: On save / update CPT A update repeater fields CPT B with Date custom post type A
I do not have code to help you with this. Just an outline of what you need to do.
You need to create an acf/save_post action for the course date post. Or you may need to use the WP save_post action . In your function you would do a query to find/get the course post with the same ID and then you would use add_row() to add to the repeater on the course post.
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.