Hi,
I have created a custom post single layout for my posts. The standard single layout has the option to show a featured image or video?
How do I set this up in my custom post single layout? What is the DC markup?
Hi,
I have created a custom post single layout for my posts. The standard single layout has the option to show a featured image or video?
How do I set this up in my custom post single layout? What is the DC markup?
Hello @Marco,
Thanks for writing to us.
It seems that you have added the Video element for the video post format and the image element for the standard post format. I noticed that you have not pulled the correct dynamic contact code to the video URL, you need to add this dynamic contact code for the ACF meta field video URL {{dc:acf:post_field field="video"}}
. In case you want to display the Video post settings Video URL you need to call this dynamic content code
{{dc:post:meta key="_x_video_m4v"}}
Hope it helps
Thanks
Hi,
Thx for the fast reply. So the image and video elements iss the correct way to implement this?
Noticed that the video file is an mp4 format. Is it possible to add this kind of format?
Hello @Marco,
Yes, the setup of the image and video format post is fine at the moment. Yes, you can add the MP4 format video file to WordPress media. You can check the list of video formats which is allowed . https://developer.wordpress.org/themes/functionality/media/video/
Hope it helps
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.