• 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 https://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=https://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?

    NOTE: The URL displayed is not hyperlinked which I know is an issue.

  • The topic ‘Youtube Embedding not working on Custom Theme – Just shows URL text’ is closed to new replies.