Home › Forums › Front-end Issues › WooCommerce Attribute Image to Single Product › Reply To: WooCommerce Attribute Image to Single Product
Well I have done some research and have almost got the code working. Currently the code looks like this
add_action(‘woocommerce_single_product_summary’,”finish_image”,22);
function finish_image() {
echo ‘<b>Finish:</b>’ .get_field(‘finish_img’, $product_id);
}
For some reason the image will not show, It just shows the text “array”(not the setting the actual word array). If I change it to URL, It shows the right url and if I change it to Image ID it show the right id.
After playing with the settings more, I can no longer get anything to come up, please help!
Thanks
Jake
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.