我已经为主题自定义创建了一个函数.
function create_theme_option() {
add_menu_page( 'Manage Options', //Page Title
'Theme Option', //WP Administrator Menu Title
'manage_options', //
'theme-options', //Link to a page to your Administration Area
'deploy_theme_options', //Function Name
get_template_directory_uri() . '/Plugins/Background Changer/images/icons/icon.png',//Menu Icon
99);
add_submenu_page("theme-options", "Theme Settings", "Theme Settings", 1, "theme-settings", "theme_settings");
add_submenu_page("theme-options", "Manage Header", "Manage Header", 1, "manage-header", "manage_header");
add_submenu_page("theme-options", "Social Media", "Social Media Links", 1, "social-media", "social_media");
add_submenu_page("theme-options", "Catalog Manager", "Catalog Manager", 1, "catalog-manager", "catalog_manager");
}
Run Code Online (Sandbox Code Playgroud)
但我注意到在标题"主题选项"之后,旁边会出现另一个文本作为"主题选项".检查下面的图片:

我怎样才能解决这个问题?请帮忙!
我是PHP的新手,我对使用IN参数的select语句有一些疑问.
<?php
$resultID = "333\n334\n335\n0";
$reconResult = str_replace("\n",",",$resultID);
//$reconResult will display 333,334,335,0
$query = mysql_query('SELECT * FROM tbl_name WHERE tbl_item_id IN($reconResult)');
if(mysql_num_rows($query)>0){
while($r=mysql_fetch_object($query)){
echo $r->tbl_item_name;
}
}
?>
Run Code Online (Sandbox Code Playgroud)
我只想显示包含来自$ reconResult的id的项目;
提前致谢.