I created an attribute called "youtube" (text field only) on magento. In this text field I put youtube video urls like (www.youtube.com/embed/nk\_FpiXp-3s) etc...

So my issue is I`m trying to php echo this attribute "youtube" inside my html href code.

```
 <a class="various fancybox.iframe" href="<?php echo $_product->getAttributeText('youtube')?>">Youtube (iframe)</a>

```

but it seems to break the page. Also my fancybox script.

```
<script>
   var $j = jQuery.noConflict();
   $j(".various")
       .attr('rel', 'gallery')
       .fancybox({
       openEffect  : 'none',
       closeEffect : 'none',
       nextEffect  : 'none',
       prevEffect  : 'none',
       padding     : 0,
       margin      : [20, 60, 20, 60] // Increase left/right margin
   });
</script>    

```

Any tips guys ?
It's custom attribute inside of a custom block. The block on product page is working fine so the issue is on php echo.

Thanks!

Sorry for the missing (?>) but it seems to not be working.