Setting Youtube height and width in WordPress

This entry is part 2 of 2 in the series Wordpress

If you paste a youtube URL in the content, the height of the Youtube video could be stretched.

To control it, you could use the following code in functions.php to limit both its height and width.

if (!isset($content_width))
    $content_width = 720;
if (!isset($content_height))
    $content_height = 620;
Series Navigation<< Display a youtube link in WP post