It is okay for me, the “_” was the main problem.
then, to show the value I had to use that kind of code!
$field = get_field_object('ventelocation');
$value = get_field('ventelocation');
$color = $field['choices'][ $value ];
Thanks @jarvis for your help.
I am using Divi theme.
And yes I am talking about WooCommerce variations for a product.
But I guest the frontend of teh product page is linked to Woocommerce not Divi ?…
thanks @hube2.
Actually I used a text field ans so inserted an iframe with autoplay and it works fine.
I tried with custom code un functions.php but it didn’t work either.
add_action( 'woocommerce_product_thumbnails', 'my_function', 20 );
function my_function() {
echo '<b>Video:</b> ' . get_field('video');
};
Any idea ? Thanks !
Thank you @andrewmarker .
What do you mean?
I can’t show the video just below the woocommerce product images gallery ?
The shortcode is an error ?
No solution ? Nothing can be show below the woocommerce product images gallery ?
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.