【发布时间】: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 模块化框架,此问题仅在几页中发生。请帮我解决这个问题。
【问题讨论】: