Home › Forums › Add-ons › Flexible Content Field › add_row in a clone field › Reply To: add_row in a clone field
Found out the solution, after some digging, I’ve realized that I didn’t try using the add_sub_row function. Which solved my problem using the following code:
add_sub_row(array(self::content_field, $this->row, self::aside_content_field), [
'acf_fc_layout' => 'aside_image',
'aside_img_credit' => 'test',
'aside_img_image' => 196
], $this->post_id);
Thanks for the help and sorry for the double posts!
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.