With the Dynamic Repeater widget of the JetEngine plugin, you can showcase a video from the repeater meta field using special macros. We are going to provide an example based on showing an embedded video of the post included in the Tour custom post type.
1 Step— Creating a meta box
We start with creating the Video meta box, which includes the Presentation repeater meta field. We go to the JetEngine > Meta Boxes block in the WP Dashboard and click the “Add New” option. The settings window will appear right here, where we should define the meta box title, specify the Posts in the Meta Box for field and enable this meta box for the Tour CPT.
2 Step— Adding a video repeater meta field
Then, we click the Meta fields tab below and add a new meta field (Presentation) to the Video meta box. In the Field type, we choose the Repeater option. In the showed window we click the “New Repeater Field” button and enrich the Label and Name fields, and also select the Type: Text.
3 Step— Editing a custom post
Now we open the Tour CPT in the WP Dashboard and proceed to edit the Beauty of Italy custom post. In the video repeater field, we insert the link to the video on YouTube.
4 Step— Creating a listing
In the next stage, we create a new listing in the JetEngine > Listings block in the WP Dashboard. We set the listing settings and call it “Tour listing”. You can create it either in the Elementor page builder or in Gutenberg Editor.
5 Step— Setting the Dynamic Repeater widget
Now we enrich it with the Dynamic Repeater widget (in Elementor) or block (in Gutenberg). In the widget’s settings, we select the Source: Presentation and paste the
%video|embed_url% macros in the Item format box, where the “video” is the name of the repeater meta field.
6 Step— Using the Listing Grid widget
We edit the page, where we want to present a listing, in the Elementor editor and insert the Listing Grid widget in it. In the Content > General tab of the widget’s settings, we choose the created listing, Tour listing, and apply varied content and style settings.
7 Step— Viewing the video on the frontend
Let’s view how it looks on the front end.
Well done! Embed video to your website using the Dynamic Repeater widget of the JetEngine plugin.