【问题标题】:Wordpress Spotify playlist Embed, '&theme=white' gets encodedWordpress Spotify 播放列表嵌入,“&theme=white”被编码
【发布时间】:2017-11-07 14:16:10
【问题描述】:

我正在尝试在具有白色主题的博客上获取一些 Spotify 播放列表。 不知道为什么 '&theme=white' 的 & 符号会被编码。 我尝试在formatting.php 中评论这些行

//$curl = preg_replace('/&([^#])(?![a-zA-Z1-4]{1,8};)/', '&$1', $curl);

//$url = str_replace( '&', '&', $url );

但它仍然被编码...... 我正在使用带有 WPBakery 和 Visual composer 的 Bridge 主题。 那些家伙可能在搞乱编码吗?

这是 iframe 代码:

<iframe src="https://open.spotify.com/embed/artist/2hbw7tsQv6Ejqc8kBDoFIK&theme=white" width="300" height="380" frameborder="0"></iframe>

【问题讨论】:

    标签: wordpress iframe spotify playlist ampersand


    【解决方案1】:

    &只用在不同的查询参数之间

    ?只用在路径和查询参数之间

    由于您只有一个查询参数,只需将 & 更改为 ?

    【讨论】:

      猜你喜欢
      • 2018-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多