Home › Forums › Add-ons › Repeater Field › Repeater field images to woocommerce gallery › Reply To: Repeater field images to woocommerce gallery
Hello John
I tried to implement your code.
I see what you did there. Found image ID’s and put them in an array.
But they are saved incorrectly. Here’s how it looks like now:
(this product has 3 images)
<wp:postmeta>
<wp:meta_key>_product_image_gallery</wp:meta_key>
<wp:meta_value><![CDATA[a:3:{i:0;i:3688;i:1;i:3689;i:2;i:3690;}]]></wp:meta_value>
</wp:postmeta>
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.