eoban.com

Tuesday, March 22, 2011 at 15:18

Fun with PBS Video, oEmbed, and WordPress

Today I discovered that COVE can generate oEmbed JSON for at least some of their videos. To use this in WordPress, all you have to do is us wp_oembed_add_provider(), like so:

<?php wp_oembed_add_provider( 'http://video.pbs.org/video/*', 'http://video.pbs.org/oembed/' ); ?>

The easiest way to do this is just stick it in your theme’s functions.php file. Let’s try it out:

Leave a Reply