【问题标题】:URL Shortcode Is not Printing on href or src in few pages on wordpressURL 短代码未在 wordpress 的几页中的 href 或 src 上打印
【发布时间】:2015-07-27 13:47:18
【问题描述】:

我创建了一个用于获取主题 url 的简码,用于获取特定于主题的图像、js 和 css。生成的页面 url 成功打印在页面上,但是当我在 herf 或 src 上使用简码时,它会打印简码名称而不是 url。例如,

    [theme_uri]
<link rel="stylesheet" type="text/css" href="[theme_uri]css/custom-landing.css"/>

输出

    http://www.example.com/wp-content/themes/modular-child/
<link rel="stylesheet" type="text/css" href="[theme_uri]css/custom-landing.css">

我正在使用 wordpress 模块化框架,此问题仅在几页中发生。请帮我解决这个问题。

【问题讨论】:

    标签: php wordpress shortcode


    【解决方案1】:

    试试这个,

    <link rel="stylesheet" type="text/css" href=[theme_uri]"css/custom-landing.css">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多