【问题标题】:get_field within hyperlink wont return field超链接中的 get_field 不会返回字段
【发布时间】:2015-09-03 07:16:46
【问题描述】:

我正在尝试显示一个弹出式视频,其中部分超链接包含在字段 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]">

不确定我在这里做错了什么?如果我用实际的超链接替换获取字段部分,它会起作用。

【问题讨论】:

    标签: php html video hyperlink popover


    【解决方案1】:
    <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>
    

    使用此代码

    【讨论】:

    • 谢谢,我加了一个“?”到现场,它似乎成功了:)
    猜你喜欢
    • 2021-02-24
    • 2017-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-03
    • 2017-08-22
    • 2012-10-01
    • 1970-01-01
    相关资源
    最近更新 更多