Need help? Check out our Support site, then


Youtube Embedding not working in 3.8.1 on Custom Theme - Just shows URL text

  1. 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?

  2. Just for the record, there is no hyperlink attached to the URL.

  3. You will have to ask at the WordPRess.org support forums. These forums are for the hosted WordPress.com blogs only.

  4. 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?

  5. Your YouTube links are hyperlinked.
    Try this:
    http://en.support.wordpress.com/videos/youtube/#troubleshooting

  6. 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

  7. good point! ≥^!^≤

Topic Closed

This topic has been closed to new replies.

About this Topic