Home › Forums › Front-end Issues › WooCommerce Attribute Image to Single Product › Reply To: WooCommerce Attribute Image to Single Product
I have gotten the image url to show back up if I give the full path to a single Attribute.
add_action(‘woocommerce_single_product_summary’,”finish_image”,22);
function finish_image() {
echo ‘<b>Finish:</b>’. get_field(‘finish_img’, ‘pa_metal-finish_79’);
}
But I need the code to search though the metal finish attributes to find the one that applies to that Item.
I know its something like the post found here.
https://support.advancedcustomfields.com/forums/topic/get-field-from-woocommerce-attribute-taxonomy/
but I cant seem to quite figure it out, do you have any insite?
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.