admin管理员组文章数量:1404599
I have my own wordpress theme created, when I attach a video to the post it looks good while editing. After posting the post, showing the post comes out the following code but does not display the video or controls.
[video width="560" height="320" mp4=""][/video]
Should I add some functionality to my theme in the functions?
WP Versión 4.6.1
I have my own wordpress theme created, when I attach a video to the post it looks good while editing. After posting the post, showing the post comes out the following code but does not display the video or controls.
[video width="560" height="320" mp4="http://namefile.mp4"][/video]
Should I add some functionality to my theme in the functions?
WP Versión 4.6.1
Share Improve this question edited Mar 7, 2017 at 12:16 David asked Mar 7, 2017 at 12:02 DavidDavid 411 silver badge5 bronze badges 1- You shouldn't have to add any functionality to your theme. Does it work with default theme active? – Industrial Themes Commented Mar 7, 2017 at 21:19
1 Answer
Reset to default 1According to WordPress codex here https://codex.wordpress/Video_Shortcode . You wrote the shortcode wrong, you added mp4 instead of src
The correct way to write the shortcode Is like this:
[video width="560" height="320" src="http://namefile.mp4"]
本文标签: Video Shortcodes not working in Wordpress
版权声明:本文标题:Video Shortcodes not working in Wordpress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744829160a2627244.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论