problem with Youtube embed
-
Hello,
First of all let me tell you this is an awesome plugin!
I followed the documentation to add a custom behavior to the profile on a participant by editing the pdb-single-default template:
<?php while ( $this->have_fields() ) : $this->the_field(); // YOUTUBE if ( $this->field->name == 'youtube' ) { echo '<iframe width="420" height="315" src="//www.youtube.com/embed/'; $this->field->print_value(); echo '?rel=0" frameborder="0" allowfullscreen></iframe>'; }
It works fine, it embeds the youtube video, but it also shows the youtube code. How can I replace the code by the embed, so that I don’t have both the embed and the code showing?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘problem with Youtube embed’ is closed to new replies.