'video',
'posts_per_page' => -1,
'post_status' => 'publish'
);
$result = new WP_Query($args);
if ($result->have_posts()) :
while ($result->have_posts()) : $result->the_post();
$video_url = get_field('youtube_video'); // SINGLE ACF field
$title = get_the_title();
$desc = get_the_content();
if (!$video_url) continue;
// Extract YouTube Video ID
if (preg_match('/(?:youtube\.com\/.*v=|youtu\.be\/)([^"&?\/\s]{11})/', $video_url, $matches)) {
$video_id = $matches[1];
} else {
continue;
}
?>