Hello everyone,
I should create a page where you can view all videos (oembed field) of a specific custom post type.
Example:
Custom Post Type = Project
Inside Project there are 4 articles and inside each of them 4 videos are uploaded.
So my question is: how can I structure my feature so that it allows me to extract the videos of all the articles and show them in a single page?
I made this filter:
<?php
$args = [
'post_type' => 'project',
'post_status' => 'publish',
];
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) { $loop->the_post();
$video = get_field('embed_1', get_the_ID());
print $video;
}
wp_reset_postdata();
?>
But now I would like to be able to add other custom fields like embed_1, embed_2 and embed_3 to this.
How can I do it?