Home › Forums › General Issues › Displaying Array Data in Product Pages › Reply To: Displaying Array Data in Product Pages
Hi @rslaing
Could you please clarify your intention? Did you want to insert the custom field values to the products you have or did you want to show the values on the front end?
If you want to insert the value, I’m afraid there’s no easy way to automate it because ACF doesn’t know what you want to insert for a particular product.
If you want to show the values, please take a look at this page: https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/.
The ID for the_field() function is not the group ID, but your post/product ID. To get it, please take a look at this page: http://stackoverflow.com/questions/27385920/woocommerce-get-current-product-id-or-title-within-sidebar.
I hope this helps!
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.