0

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

  • You shouldn't have to add any functionality to your theme. Does it work with default theme active? – Industrial Themes Mar 7 '17 at 21:19
0

According to WordPress codex here https://codex.wordpress.org/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"]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.