Support

Account

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?