我使用ACF textarea字段加载一些js和css文件
我想做的是为文件的域路径设置一个快捷码。像这样的
这是我的shortcode函数
function my_path_shortcode() {
$domain_path = get_template_directory_uri();
return $domain_path;
}
add_shortcode(\'shortcode_domain_path\', \'my_path_shortcode\');
问题是我得到的[shortcode\\u domain\\u path]是
plain text 因为我使用textarea字段。有什么方法可以做到这一点并找到路径吗?
谢谢你的帮助!