I’m afraid I don’t understand your setup. Could you please tell me what you want to do with the
Regarding your issue, could you please check the value of the
$repeater_key variable? Please keep in mind that the second parameter of the
have_rows() function should be the post ID, so it will make more sense if you use it like this:
if( have_rows($repeater_field, $post_id) ):
acf/pre_save_post is executed before any saving process. If you need to do it after the data is saved, you need to use the
acf/save_post hook with a priority of 20 instead. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acfsave_post/.
I hope this makes sense 🙂
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!