Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi there,

I cannot get the youtube shortcode to work.

My code as below:

Code: Select all
<cms:editable name='offering_video_title' type='textarea'>   
  <div class="col-md-6">
    <cms:do_shortcodes><cms:show offering_video_title /> [youtube http://www.youtube.com/watch?v=5widVcBpjt8]</cms:do_shortcodes>
               
</div>
</cms:editable>


Thank you.
Hi,

I suggest you please move the definition of your editable region to within the <cms:template> block at the top of your template (just below the first <?php statement) e.g. as follows -
Code: Select all
<cms:template>
    <cms:editable name='offering_video_title' type='textarea' />
</cms:template>

Now your display code could be simplified to this -
Code: Select all
<div class="col-md-6">
    <cms:do_shortcodes><cms:show offering_video_title /> [youtube http://www.youtube.com/watch?v=5widVcBpjt8]</cms:do_shortcodes>
</div>

Hope this helps.
2 posts Page 1 of 1