Support

Account

Home Forums General Issues Display Product Dimensions with ACF

Solved

Display Product Dimensions with ACF

  • Hi all,
    I am a newbie with ACF.
    I have an online store and I would like to use ACF to extract the product dimensions (Length, Height, Wide, Weight) that I previously entered for each product (Under the Shipping section)

    Is there a way to create a field named Height for example and ACF will extract the value from the product data?

    I hope I managed to explain correctly..

    Thanks!
    Alon

  • Why do you want to use ACF to duplicate this info? WooCommerce stores that data in meta key/value pairs already. For instance, you can access length with something like:

    <?php echo get_post_meta($post->ID, '_length', true); ?>

  • Your approach is great!
    Thank you for your reply!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.