Hi all I've created a function that basically allows the user to input the embed code for youtube into a custom field called youtube and this will then be styled on a wordpress post. Now I can get it to work perfectly until I want to wrap some CSS around it. Could you have a look where I'm going wrong. I think it's because I'm closing and opening PHP code? Thanks
<?php
function youtube(){
$ytvalue = get_post_custom_values("youtube");
$youtube = $ytvalue[0];
return '<div class="youtubeVideoWrapper">
<div class="youtubeVideoHeader"></div>
<div style="clear:both"></div>
<div class="youtubeVideoOuterContainer">
<div class="youtubeVideoInnerContainer">';
return $youtube;
return '</div>
</div>
</div>
<div style="clear:both"></div>';
}
add_shortcode('youtube', 'youtube');
?>
