Title: [Plugin: Quick Post Widget] Hide category selector?
Last modified: August 20, 2016

---

# [Plugin: Quick Post Widget] Hide category selector?

 *  [John Davey](https://wordpress.org/support/users/john-davey/)
 * (@john-davey)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-quick-post-widget-hide-category-selector/)
 * This is what the instructions say, but the category section does not hide itself,
   even when I have only one category. Can anyone confirm that this feature works
   for them? If so, then I am doing something wrong.
 * How to hide the category selection?
    In the admin panel it is possible to include
   or exclude certain categories, to choose the categories order and to set a default
   category. If only one category remains, the default category is the same as the
   only category and creating a new category is disabled, the complete category 
   section hides itself.
 * [http://wordpress.org/extend/plugins/quick-post-widget/](http://wordpress.org/extend/plugins/quick-post-widget/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Diogo15](https://wordpress.org/support/users/diogo15/)
 * (@diogo15)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-quick-post-widget-hide-category-selector/#post-2386034)
 * You must modify the core file..
 *  [blackriver](https://wordpress.org/support/users/blackriver/)
 * (@blackriver)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-quick-post-widget-hide-category-selector/#post-2386051)
 * Are you sure that you are doing it right? Here is the code:
 *     ```
       if ((count($cats) == 1) && ($disable_new_cat == 'yes') && ($cat_default == $cats[0]->term_id)) $showhide_categories = 'hide';
       else $showhide_categories = 'show';
       ```
   
 * All you have to do is:
    1. Select 1 category from the category list (include)
   2. Pick default category do be the same category. 3. Hide new category option.
 * It works.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Quick Post Widget] Hide category selector?’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-post-widget.svg)
 * [Quick Post Widget](https://wordpress.org/plugins/quick-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-post-widget/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [blackriver](https://wordpress.org/support/users/blackriver/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-quick-post-widget-hide-category-selector/#post-2386051)
 * Status: not resolved