YouTube shortcode not working
-
Hey guys,
I can get YouTube clips to embed fine if I just copy the URL into the HTML window, but can’t get the shortcut to activate if I go that route. The post in question is the first one here: http://balloflightning.com/
I have:
1.) Tried different videos
2.) Tried different versions of the code copied from them Codex (i.e., included height, width attributes, etc.)
3.) Typed in both the HTML and rich editor windows
4.) Toggled themes
5.) Tried on a subdomain.
-
I always prefer using Viper’s Video Quicktags plugin for it: http://downloads.wordpress.org/plugin/vipers-video-quicktags.zip
has support for a ton more video providers and it’s simple to use.
give it a shot, I haven’t had any issues with it
Thanks for the link– that’s an option, as is just using the YouTube embed HTML code.
However, I run multiple sites across my domain and others so the ideal solution would be something that’s default in the WordPress source tree.
That’s why I’m so perplexed by this issue.
http://codex.wordpress.org/Embeds
make sure you have auto-embed enabled.
WordPress doesn’t have youtube shortcodes like that built in.
Use code like this instead:
[embed]http://youtube.com/watch?v=H2Ncxw1xfck[/embed]@jdingman, auto-embed is enabled.
@otto, [embed] works but won’t allow me to specify the height and width of the frame. WordPress does allow YT shortcodes, at least here: http://en.support.wordpress.com/videos/youtube/#embedding-with-a-shortcode
@otto, [embed] works but won’t allow me to specify the height and width of the frame.
Who told you that?
[embed width=123 height=456]http://youtube.com/watch?v=H2Ncxw1xfck[/embed]Also, those youtube specific shortcodes are on WordPress.COM. Not on WordPress.ORG.
Two different things.
@otto, it all seems so clear now! Thanks!
I consider myself an in-between WordPress user– I didn’t realize the disconnect between the .com and .org services/packages.
Cheers!
@czar21 – for the sake of clarity and for anyone that reads this in the future, here is WordPress.com (remotely hosted) vs WordPress.org (self-hosted) – http://en.support.wordpress.com/com-vs-org/
cheers!
The topic ‘YouTube shortcode not working’ is closed to new replies.