超链接中的get_field不会返回字段

时间:2015-09-03 07:16:46

标签: php html video hyperlink popover

我正在尝试显示一个弹出视频,其中部分超链接包含在字段single_video_url中。

我的代码:

 <a href="http://fast.wistia.net/embed/iframe/"-?php $video = get_field (' single_video_url '); ?>" ?popover=true" class="wistia-popover[height=360,playerColor=F36F36,width=640]">

不确定我在这里做错了什么?如果我用实际超链接替换get字段部分,它可以工作。

1 个答案:

答案 0 :(得分:0)

<a href="http://fast.wistia.net/embed/iframe/<?php $video = get_field (' single_video_url '); ?>popover=true" class="wistia-popover[height=360,playerColor=F36F36,width=640]">sample text</a>

使用此代码