Title: Feature &#8211; &#039;hide_empty&#039; as widget option
Last modified: August 20, 2016

---

# Feature – 'hide_empty' as widget option

 *  Resolved [renathy](https://wordpress.org/support/users/renathy/)
 * (@renathy)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/feature-hide_empty-as-widget-option/)
 * Why ‘hide_empty’ is not a widget option?
 * It could be changed on line 99 in jquery-category-list.php:
 *  return get_categories(
    array( ‘type’ => ‘post’, ‘child_of’ => 0, ‘orderby’ 
   => $options[‘orderby’], ‘order’ => $options[‘orderdir’], ‘hide_empty’ => 1, //
   HERE!!!!!!!!!!!!!!!!! ‘hierarchical’ => 1, ‘taxonomy’ => ‘category’, ‘pad_counts’
   => false ) );
 * It would be helpful if this variable could be configured somewhere and not directly
   in code.
 * Thank you,
    Renate
 * [http://wordpress.org/extend/plugins/jquery-categories-list/](http://wordpress.org/extend/plugins/jquery-categories-list/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Miguel Useche](https://wordpress.org/support/users/skatox/)
 * (@skatox)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/feature-hide_empty-as-widget-option/#post-3388837)
 * I’ve updated the plugin to include this feature 🙂 test it please.
 * For next time, you’re welcome to change the source code and send me patches, 
   or keep giving ideas.

Viewing 1 replies (of 1 total)

The topic ‘Feature – 'hide_empty' as widget option’ is closed to new replies.

 * ![](https://ps.w.org/jquery-categories-list/assets/icon.svg?rev=2921024)
 * [JS Categories List Widget](https://wordpress.org/plugins/jquery-categories-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-categories-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-categories-list/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-categories-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-categories-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-categories-list/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Miguel Useche](https://wordpress.org/support/users/skatox/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/feature-hide_empty-as-widget-option/#post-3388837)
 * Status: resolved