Skip to content

Media Extreme

Development Notes

Categories

  • Development
  • Firefox/XUL
  • iPhone
  • News
  • Piano
  • Tech
  • Web
  • Wordpress

Easy way to add embed code to your site

If you want to embed from popular video sites, rather than copying and pasting embed codes, use oembed and the built int wordpress oembed functions.

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

Call it from your template and it will create the embed code for you. The only drawback is that it may be slower.

Posted on November 18, 2011Author chuckCategories WordpressTags embed, templates, video

Post navigation

Previous Previous post: Great wordpress video for beginners
Next Next post: Add a theme options page
Proudly powered by WordPress