Youtube Embedding not working in 3.8.1 on Custom Theme – Just shows URL text
-
I’m using a custom theme which is developed by myself, using the code:
do_shortcode($post->post_content);to display the content of a post outside of “The Loop”.When I paste a youtube URL like http://www.youtube.com/watch?v=DjoNGPFbsUQ into the post’s content box and preview the post, the youtube URL appears as text and not the embedded video player as it should. I have also tried the shortcode version:
[youtube=http://www.youtube.com/watch?v=DjoNGPFbsUQ]which also displays the text and not embedded video player.Is there something I am not doing in my theme to allow this to work?
-
-
You will have to ask at the WordPRess.org support forums. These forums are for the hosted WordPress.com blogs only.
-
I’m having the same problem. I’m not using a custom theme, and I can’t seem to find any answers.
Is there a problem with the Videos?
-
Your YouTube links are hyperlinked.
Try this:
http://en.support.wordpress.com/videos/youtube/#troubleshooting -
The hyperlink thing has messed me up a few times. @Raincoaster likes to use the Short Code
http://en.support.wordpress.com/videos/youtube/#embedding-with-a-shortcode
-
- The topic ‘Youtube Embedding not working in 3.8.1 on Custom Theme – Just shows URL text’ is closed to new replies.