我在其他情况下使用过这个并且似乎有用,但是vimeo会抛出一个错误......
<?php
echo '<iframe src="http://player.vimeo.com/video/';
the_field('vimeo');
echo ' title=0&byline=0&portrait=0" width="1000" height="565" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
?>
答案 0 :(得分:1)
尝试
<?php
$videoID = get_field('vimeo');
echo '<iframe src="http://player.vimeo.com/video/'.$videoID.'&title=0&byline=0&portrait=0" width="1000" height="565" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
?>