Hello,
I solved the issue, it was actually my mistake: there was another query before the custom fields that needed to be reset.
I posted the working snippet here: http://wordpress.stackexchange.com/questions/188440/acf-pro-repeater-field-returns-null
Hello @ebbandflow
I’m sorry to reopen such an old thread. I’ve tried your code and it work simply perfectly both for Youtube and Wistia. Unfortunately if I try to use it with a Vimeo video it returns nothing. Given the following code (in the template file):
<?php
$video_url = get_field('my_video_field', FALSE, FALSE); //URL
$video_thumb_url = get_video_thumbnail_uri($video_url); // get Thumbnail via our functions in functions.php
?>
<img src="<?php echo $video_thumb_url; ?>" alt="">
this is the output:
<img src="" alt="">
As I said, with Youtube and Wistia this is working perfectly. Have you got any idea about why it’s not working with Vimeo?
Thanks!
Then I guess my problem is different. I opened a different thread for it.
Thanks!
Thanks addeo, I’ll try it.
I just noticed it only happens with qtranslate fields! The rest of fields are working correctly. Is it the same for you?
I’m experiencing the same problem with version 5.1.4. Has this been fixed?
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.