Custom Fields
Re-Envisioned
Support Meta Box Group How to the video field for group type? Reply To: How to the video field for group type?

#8805

Anh Tran
Keymaster

Hi,

Thanks. I’m good 🙂

Regarding the video field, when getting from the group, it’s just the IDs of the uploaded videos. To output the videos, you can do like this:

<?php
foreach ( $facilities_videos as $facilities_video ) {
    $facilities_video = RWMB_Video_Field::file_info( $facilities_video );
    ?>
    <video src="<?php echo $facilities_video['src']; ?>">
<?php } ?>