0

我在其他情况下使用过它并且似乎可以工作,但是 vimeo 抛出了一个错误......

<?php 
    echo '<iframe src="http://player.vimeo.com/video/';
        the_field('vimeo');
    echo ' title=0&amp;byline=0&amp;portrait=0" width="1000" height="565" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
?>
4

1 回答 1

1

尝试

<?php 

$videoID = get_field('vimeo');

echo '<iframe src="http://player.vimeo.com/video/'.$videoID.'&amp;title=0&amp;byline=0&amp;portrait=0" width="1000" height="565" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';

?>
于 2013-04-23T11:23:44.387 回答