Is there any way to hide a category from the drop down menu so users can't post to it? Reason is I have to use 2 post submit plugins, 1 for submitting to a specific category, so I can't disable it in any way, then I was going to use this one for submitting to all the others. Since I had trouble finding plugins for submitting posts, I thought I could supplement by using 2 different ones, but I was hoping to somehow hide the first category in the list since it's a special category.
Anyone know if this is possible, perhaps a hack of some sort?
thanks!
http://wordpress.org/extend/plugins/wp-user-frontend/
gripgrip
Member
Posted 5 months ago #
Yes you can, it's really easy.
Go to wpuf-add-post.php in the plugin directory
Find
wp_dropdown_categories('hierarchical=1&hide_empty=0&orderby=id&show_count=0&title_li=&use_desc_for_title=1');
add &exclude=1,3 at the end ( where 1 and 3 are the categories you will exclude )
you will get
wp_dropdown_categories('hierarchical=1&hide_empty=0&orderby=id&show_count=0&title_li=&use_desc_for_title=1&exclude=1,3');
More info at http://codex.wordpress.org/Function_Reference/wp_dropdown_categories