Skip to content

Instantly share code, notes, and snippets.

@erezLieberman
Last active May 2, 2016 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erezLieberman/9228890 to your computer and use it in GitHub Desktop.
Save erezLieberman/9228890 to your computer and use it in GitHub Desktop.
youtube player from acf field
<?php if (get_field('youtubeURL')) {
$mystring = get_field('youtubeURL');
$parts = explode("=",$mystring);
$mystring = $parts['1']; ?>
<iframe width="440" height="228" src="//www.youtube-nocookie.com/embed/<?php echo $mystring ; ?>" frameborder="0" allowfullscreen></iframe>
<?php } ?>
@erezLieberman
Copy link
Author

http://stackoverflow.com/a/18655487/2721050
to fix firefox issue when its bootstrap modal in firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment