0
我不知道我的错在哪里。我只是简单地使用build.reduxframework.com生成一个文件,然后添加到我的Wordpress主题中。然后在函数中添加以下行:Wordpress中的Redux Framework不起作用
if(is_admin()){
require_once(get_template_directory().'/core/admin/admin-init.php');
}
好东西是演示的东西显示出来。现在我的$ opt_name是for_test。在我的header.php中,我添加了下面的代码。
<h2><?php
global $for_test;
echo $for_test['textarea-example'];
?></h2>
PS:textarea-example是已经添加到我下载的文件中的字段的ID。但我不知道为什么它没有提取它的价值。