Support

Account

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);