Home › Forums › Front-end Issues › How to display all oembed fields on custom page › Reply To: How to display all oembed fields on custom 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?
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.