This Premium tutorial is similar to the Video Background in Oxygen using ACF tutorial, but when using Meta Box.
Step 1
Install and activate Meta Box and Meta Box AIO plugins.
Create this field group (JSON export) using Meta Box for your desired post type:
![](https://wpdevdesign.com/wp-content/uploads/2023/12/CleanShot-2023-12-04-at-10 .14.37@2x-1024x465.png)
For the Video type field, set "Max number of files" to 1.
In the Settings tab, set the Location to your desired post type.
![](https://wpdevdesign.com/wp-content/uploads/2023/12/CleanShot-2023-12-04-at-10 .21.12@2x-1024x350.png)
Step 2
Edit your Pages and populate the field for each.
![](https://wpdevdesign.com/wp-content/uploads/2023/12/video-background-field-being-populated-1024x506.jpg)
Step 3
Let's create a function for use with a Dynamic Data condition to ensure that the video Section gets output only on Pages that have the field populated.
Install and activate a code snippets plugin like WPCodeBox 2.
Create a new PHP snippet.
Title: Check if the given Meta Box group is empty
Code:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.