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
Add a comment  | 

1 Answer 1

Reset to default 1

According 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