Home › Forums › Front-end Issues › Returning multiple values from the video fields › Reply To: Returning multiple values from the video fields
if you’ve set the return value to return an array or object, you can access those values like so:
$video = get_field('video');
$video_url = $video['url'];
$video_thumbnail_url = $video['thumbnail'];
$image = get_field('image');
$image_url = $image['url'];
$image = $image['id'];
You can always view the entire object/array by using var_dump($image);
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.