WordPress.org

Ready to get started?Download WordPress

Forums

Youtube Embeds not working after import (4 posts)

  1. Jordan Acosta
    Member
    Posted 4 years ago #

    After setting up my own site, I decided to move my blog off of WordPress.com. So I exported my data out of WordPress.com, then imported it into my own WordPress installation. Now all the Youtube videos I embedded have been replaced by the text of the link in brackets. It wouldn't be difficult for me to fix, but I'd like to know if there's a way to avoid having this happen in the first place. It seems odd that WordPress wouldn't know how to properly import WordPress data.

    My site: jordanacosta.com

    A post with embedded video: Vote Kierkegaard

  2. Music in the Hall
    Member
    Posted 4 years ago #

    Hi, did you ever get this fixed? I'm dealing with the same thing now.

    thanks.

  3. Debiprasad Sahoo
    Member
    Posted 4 years ago #

    Hi,

    I also experienced the same problem. I tried both import from WordPress and import from Blogger.

    I think there is some problem, related tho this page: http://codex.wordpress.org/Embeds

    This Embeds feature is introduced in version 2.9. And the export was working fine in 2.9.2. But it's not working fine in 3.0

    Thanks,
    Debiprasad

  4. Debiprasad Sahoo
    Member
    Posted 4 years ago #

    Here is a solution to this problem:

    You can find in /wp-includes called kses.php. In kses.php, you’ll want to scroll down to line 1309 and comment out the three lines under //Post filtering so that they look like this:

    // Post filtering
    #add_filter('content_save_pre', 'wp_filter_post_kses');
    #add_filter('excerpt_save_pre', 'wp_filter_post_kses');
    #add_filter('content_filtered_save_pre', 'wp_filter_post_kses');

    This will prevent the filter from removing all your youtube videos, slideshare embed, scribd documents, etc. Once you’ve altered the filter and saved it, you’re ready to create your new blogs, hit the Tools menu, and import your XML from your exports above. After the process completes, you should have a working blog with all of your previous content in place exactly as before.

    Source: http://jasongriffey.net/wp/2010/06/21/moving-to-wordpress-3-0/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.