Wordpress and Webdesign Forum go41 » WordPress Code Snippets

  1. omerkhan02
    Member

    Joern,

    One of my clients is using WP 2.5.1 and I am trying to embed youtube videos and it is not working. Basically what happens is when I save/publish the code is stripped out. I disabled the visual editor and still when I publish/save the post Wp automatically removes the embed code. How do I prevent this so that the video can be embedded and visible on the published post page?

    Thanks

    Here is the link to the blog.

    Omar

    Posted 1 year ago #
  2. I think before WordPress 2.9 there is no built in filter for videos.

    Upgrading to 2.9 should show the clip by inserting just the url in a single line in post editor http://www.youtube.com/watch?v=PHH2JItePlc

    Or with WP 2.5.1 you could use a plugin like Viper's Video Quicktags here:
    http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/

    and use in editor the buttons you get to insert the video, still works great in a site like my wife's: http://www.linedancestompers.de/category/movie-clips/

    Posted 1 year ago #
  3. omerkhan02
    Member

    Hey Joern,

    I have heard of nightmare stories about upgrading. Like people's sites being wiped out. What is the best way to upgrade without losing the site

    Omar

    Posted 1 year ago #
  4. upgrading I do like this:

    get the latest WordPress.zip

    extract on my PC

    Make a BACKUP of my database!!

    using ftp (filezilla) I rename on the (running) site the folders
    wp-admin to wp-admin-old
    wp-includes to wp-includes-old
    copy the new wp-includes and wp-admin up to the server and replace (just overwrite) the root files coming with the WordPress package. (wp-xxx.php index.php xmlrpc.php)
    leave config.php untouched!
    leave other files you might have there like .htaccess, robots.txt, sitemap.xxx also untouched

    the folder wp-content stays as it is!
    you might put the new akismet plugin and the new theme 'twentyten' in the place they should be.

    after that, login to your admin, it will say the database has to be upgraded.
    Do this and come to the dashboard, almost the same and smooth running.

    now you can delete wp-admin-old and wp-includes-old on the server.

    I got more than 10 sites, never problems upgrading like this.

    Check the error.log after a while to see if any (old) theme function creates errors other than before, normally not!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):