Comunicado
if ( have_posts() ) : while ( have_posts() ) : the_post();
the_content();
endwhile;
?>
endif; ?>
$galeriaFotos= acf_photo_gallery('galeria_de_fotos', get_the_ID());
$galeriaVideos= get_field('galeria_de_videos');?>
if($galeriaFotos || $galeriaVideos){?>
foreach($galeriaFotos as $foto){?>
} ?>
if($galeriaVideos){?>
foreach($galeriaVideos as $video){
$video_id = explode("?v=", $video['link_de_youtube']);
$video_id = $video_id[1];
$thumbnail="http://img.youtube.com/vi/".$video_id."/hqdefault.jpg";?>
} ?>
} ?>
} ?>
Share this