Title: Category Display Not Functioning Correctly
Last modified: October 1, 2020

---

# Category Display Not Functioning Correctly

 *  Resolved [ltw08](https://wordpress.org/support/users/ltw08/)
 * (@ltw08)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/)
 * I am running into an issue where, even though I have Show Products selected under
   Category Display, it is still displaying the subcategories associated with that
   parent category alongside the products.
 * I have been unable to create code to hide these subcategories and haven’t had
   any luck searching.
 * Anyone have any ideas?

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

 *  Plugin Support [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/#post-13480698)
 * Hey [@ltw08](https://wordpress.org/support/users/ltw08/)
 * Can you share a link to your site? That way we can take a look and see if some
   CSS code might help here.
 *  Thread Starter [ltw08](https://wordpress.org/support/users/ltw08/)
 * (@ltw08)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/#post-13480849)
 * Sure [@senff](https://wordpress.org/support/users/senff/) .The two subcategories
   currently displaying are Clear Gel and Premium ADA (I haven’t assigned a product
   to the third yet).
 *  [http://newworldimports.0450967.netsolhost.com/?product_cat=toothpaste](http://newworldimports.0450967.netsolhost.com/?product_cat=toothpaste)
 *  Plugin Support [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/#post-13480863)
 * Hey [@ltw08](https://wordpress.org/support/users/ltw08/)
 * I’m note why it would show the subcategories (if you have it set to “Products”
   under “Category Display”), but you might want to check that with your theme developer.
 * In the meantime, a quick solution would be to add the following CSS code:
 *     ```
       body.tax-product_cat .product-category {
         display: none;
       }
       ```
   
 *  Thread Starter [ltw08](https://wordpress.org/support/users/ltw08/)
 * (@ltw08)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/#post-13485780)
 * [@senff](https://wordpress.org/support/users/senff/) Unfortunately, no luck with
   the CSS. I might have an issue between my child theme and parent theme.
 *  Thread Starter [ltw08](https://wordpress.org/support/users/ltw08/)
 * (@ltw08)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/#post-13504870)
 * [@senff](https://wordpress.org/support/users/senff/) UPDATE: Managed to get the
   categories hidden, however, it’s fubared how many items are currently displaying
   per row. Below is the code I’m using to dictate how many items I have in a row.
 *  `add_filter(‘loop_shop_columns’, ‘loop_columns’, 999);
    if (!function_exists(‘
   loop_columns’)) { function loop_columns() { return 5; } }
 *  Thread Starter [ltw08](https://wordpress.org/support/users/ltw08/)
 * (@ltw08)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/#post-13509736)
 * Resolved. It was a Categories setting within WooCommerce.

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

The topic ‘Category Display Not Functioning Correctly’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [ltw08](https://wordpress.org/support/users/ltw08/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/category-display-not-functioning-correctly/#post-13509736)
 * Status: resolved