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 ?