i'am trying to embed youtube link using php but its not working help me here
- Code: Select all
<cms:editable name="video1" type="textarea" no_xss_check="1" />
<cms:php>
echo ($url = '<cms:show video1 />');
preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $matches);
$id = $matches[1];
</cms:php>
<iframe id="ytplayer" type="text/html"
src="https://www.youtube.com/embed/<cms:php> echo ($id);</cms:php>" frameborder="0" allowfullscreen></iframe>