Support » Fixing WordPress » Cannot embed youtube into posts….only on pages! Help

  • I went to youtube and took the embed code for a video. I put the embed code into the HTML section of the blog post. I publish and click preview post and I see the attached video and text as I want. If I go out of preview and look at the live website, the video is gone and only text remains.

    This only happens when I try to embed to a blog post. If I do the same process on a page, the video appears on the preview and also stays when I look at the live updated webpage. Why is this happening?

    I have searched for hours trying to solve this problem, used a number of different plug ins, tried an iframe plug in too which did exactly the same thing! I’m baffled!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Michael

    (@alchymyth)

    Forum Moderator

    does the video appear on the single post view, i.e. which should come up when you click on the title of the post on the front page?

    if so, your theme might be using the_exerpt() to show a short form of the posts (on the front page?) which strips all formatting from the post.

    http://codex.wordpress.org/Function_Reference/the_excerpt

    locate the template file displaying the front page (?) (could be index.php) and try to replace the_exerpt(); with the_content('read more');

    http://codex.wordpress.org/Function_Reference/the_content

    if this is not it, a link to your site might get you more help.

    The titles are not coming up on the front page so I can’t click them 🙁

    this is the page

    http://www.dubsnbreaks.com

    I’ve stripped out all plugins too….in case that helps

    Michael

    (@alchymyth)

    Forum Moderator

    try to edit index.php and see if you can find ‘the_excerpt();’ – replace it with ‘the_content(‘read more’);’

    if you are stuck, you could paste the code of index.php (or the file that displays the front page) into a http://wordpress.pastebin.com/ and post the link to it here.

    someone might be able to suggest a solution.

    there is no the_excerpt() code anywhere

    I have now deleted all plug ins, all pages, all categories, menus….everything. Changed the theme to a default WP theme….so am back to square one 🙁

    Now if i post a video it will come up on the main blog feed….if you post it into a category, the video disappears!!!!!

    Anyone else having this problem?

    I have the same problem.
    I’m using Twenty Ten theme, and the you tube code simply displays as is.

    [youtube=http://www.youtube.com/watch?v=OVSjjpcySuI]

    code embedding into html won’t work either.
    Is there some global setting I need to change?

    @gpspacey
    Think that only works on wordpress.com
    You need to use a Youtube plugin or enter the norml embed code from Youtube.

    @webjunk
    Ah, that makes sense. Thanks!

    I am having the same problem. I have always in the past just embedded the HTML code from YouTube into my post under HTML tab, and it worked, on both ‘Visual’ and ‘HTML’. Now, for some reason, when I embed and then change over to Visual, the video is not in my post. Anyone help? I’m running 3.0.1

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cannot embed youtube into posts….only on pages! Help’ is closed to new replies.