Support

Account

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!