我已经创建了一个短代码来获得主题的网址,获得主题特定的图像,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模块化框架,这个问题只出现在几个页面中。请在这个问题上帮助我。
发布于 2015-07-27 13:47:19
试试这个,
<link rel="stylesheet" type="text/css" href=[theme_uri]"css/custom-landing.css">https://stackoverflow.com/questions/31645592
复制相似问题