我希望作者不能看到一些类别从作者管理面板,但管理员可以看到。如何隐藏某些类别?我的网站http://techjagot.com ..
这里显示一些函数。PHP代码
<?php
// Theme Settings Page
require_once(TEMPLATEPATH . "/theme-settings.php");
// Theme Styles
require_once(TEMPLATEPATH . "/theme-styles.php");
// Theme Widgets
require_once(TEMPLATEPATH . "/theme-widgets.php");
// Load Custom Post Options for Write Post and Write Page
require_once(TEMPLATEPATH . "/theme-metaboxes.php");
// Load Theme Javascript
require_once(TEMPLATEPATH . "/theme-js.php");
// Theme Image Functions
require_once(TEMPLATEPATH . "/theme-images.php");
// Register widgetized areas
function theme_widgets_init() {
register_sidebar(array (
\'name\'=>\'Sidebar-Wide - Top\',
\'id\'=>\'widget-1\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s"><div class="widget-wrap">\',
\'after_widget\' => \'</div></div>\',
\'before_title\' => \'<h3 class="widgettitle"><span>\',
\'after_title\' => \'</span></h3>\',
));
register_sidebar(array (
\'name\'=>\'Sidebar-Wide - Bottom Left\',
\'id\'=>\'widget-2\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s"><div class="widget-wrap">\',
\'after_widget\' => \'</div></div>\',
\'before_title\' => \'<h3 class="widgettitle"><span>\',
\'after_title\' => \'</span></h3>\',
));
register_sidebar(array (
\'name\'=>\'Sidebar-Wide - Bottom Right\',
\'id\'=>\'widget-3\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s"><div class="widget-wrap">\',
\'after_widget\' => \'</div></div>\',
\'before_title\' => \'<h3 class="widgettitle"><span>\',
\'after_title\' => \'</span></h3>\',
));
register_sidebar(array (
\'name\'=>\'Sidebar-Narrow\',
\'id\'=>\'widget-4\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s"><div class="widget-wrap">\',
\'after_widget\' => \'</div></div>\',
\'before_title\' => \'<h3 class="widgettitle"><span>\',
\'after_title\' => \'</span></h3>\',
));
register_sidebar(array (
\'name\'=>\'Footer Widget 1\',
\'id\'=>\'widget-5\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s"><div class="widget-wrap">\',
\'after_widget\' => \'</div></div>\',
\'before_title\' => \'<h3 class="widgettitle"><span>\',
\'after_title\' => \'</span></h3>\',
));