Title: hide_empty not working
Last modified: February 21, 2023

---

# hide_empty not working

 *  Resolved [Georgi Bogdanov](https://wordpress.org/support/users/jorobogdanov/)
 * (@jorobogdanov)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide_empty-not-working-2/)
 * Hi,
 * I have the following configuration of the shortcode – [wpb_category_accordion
   taxonomy=’product_cat’ orderby=’menu_order’ order=’DSC’ show_count=’no’ hide_empty
   =’yes’ icon=’+’ accordion=’no’], but the empty categories are still displaying.
 * Any ideas how to find what’s causing the problem.

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

 *  Plugin Author [WPBean](https://wordpress.org/support/users/wpbean/)
 * (@wpbean)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide_empty-not-working-2/#post-16491743)
 * It should work. The shortcode seems fine to me. Can you give me a screenshot 
   of the widget where you added this shortcode.
 *     ```wp-block-code
       [wpb_category_accordion taxonomy="product_cat" orderby="name" order="ASC" show_count="no" hide_empty="yes" icon="+" accordion="no"]
       ```
   
 *  Thread Starter [Georgi Bogdanov](https://wordpress.org/support/users/jorobogdanov/)
 * (@jorobogdanov)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide_empty-not-working-2/#post-16491759)
 * Hi,
 * Here is the screenshot – [https://prnt.sc/gCl1byJxAn8J](https://prnt.sc/gCl1byJxAn8J)
 *  Plugin Author [WPBean](https://wordpress.org/support/users/wpbean/)
 * (@wpbean)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide_empty-not-working-2/#post-16495818)
 * Hi,
 * Please replace all the single quotes with double quotes. Then test it.
 * You can just copy and paste this code here-
 *     ```wp-block-code
       [wpb_category_accordion taxonomy="product_cat" orderby="name" order="ASC" show_count="no" hide_empty="yes" icon="+" accordion="no"]
       ```
   
 *  Thread Starter [Georgi Bogdanov](https://wordpress.org/support/users/jorobogdanov/)
 * (@jorobogdanov)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide_empty-not-working-2/#post-16502779)
 * Hi,
 * I have allready tried with double quotes, but the problem still exist. Do you
   have any other suggestions?
 *  Plugin Author [WPBean](https://wordpress.org/support/users/wpbean/)
 * (@wpbean)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide_empty-not-working-2/#post-16503038)
 * Without looking at how the site is set up, it’s difficult to say. For that, it
   is necessary to look from the inside.

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

The topic ‘hide_empty not working’ is closed to new replies.

 * ![](https://ps.w.org/wpb-accordion-menu-or-category/assets/icon-256x256.gif?rev
   =2899475)
 * [WPB Accordion Menu - Collapsible Vertical Sidebar Menu - WooCommerce Category Accordion](https://wordpress.org/plugins/wpb-accordion-menu-or-category/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpb-accordion-menu-or-category/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpb-accordion-menu-or-category/)
 * [Active Topics](https://wordpress.org/support/plugin/wpb-accordion-menu-or-category/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpb-accordion-menu-or-category/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpb-accordion-menu-or-category/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [WPBean](https://wordpress.org/support/users/wpbean/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/hide_empty-not-working-2/#post-16503038)
 * Status: resolved