我在我的主题选项中使用了一个插件。我复制了子主题目录中的整个插件目录,并将所有文件正确地包含在主题函数中。php。插件选项文件类似于(文件名为admin config.php)
<?php
$wlcmsShortName = "wlcms_o";
global $submenu;
$wlcmsOptions = array(
array( "name" => "Whitddde Label CMS Options", "type" => "title"),
array( "name" => "Dasboard", "type" => "section"),
array( "type" => "open"),
array( "name" => "Admin Bar", "type" => "subtitle")
);
if ( version_compare( $wp_version, \'3.2.5\', \'>=\' ) )
{
$wlcmsOptions[] = array(
"name" => "Hide WordPress Logos",
"desc" => "Hide WordPress logo from the admin bar and home icon",
"id" => $wlcmsShortName."_hide_wp_adminbar",
"type" => "radio",
"options" => array("1", "0"),
"std" => 0);
$wlcmsOptions[] = array(
"name" => "Add Your Logo (16px x 16px)",
"desc" => "Adds a 16px logo to the admin bar",
"id" => $wlcmsShortName."_adminbar_custom_logo",
"class" => \'upload_image_button\',
"type" => "file",
"std" => \'\');
/*... plus all other arrays....*/
现在,在我的主题选项回调函数中,我尝试包含这个选项页面。我试过了
function file_callback(){
get_template_part(\'admin-config\');
echo \'just testing\';
}
现在,在我的主题选项中,我得到了这个文本,只是测试,没有从我调用的模板中得到任何东西。我怎样才能解决这个问题?
PS:我在我的孩子主题选项页面中提供了白标签CMS的所有功能。