Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i want author can not see some category from author admin panel but administrator can see that.how i can hide some category?my site http://techjagot.com ..

here show some function.php code

<?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>',
    ));
share|improve this question
add comment

1 Answer

Try the restrict categories plugin. It lets you configure which categories are visible in the Wordpress admin, based on the user role or the individual user.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.