- This topic is empty.
-
AuthorPosts
-
July 19, 2023 at 3:24 pm #6727
Douglas
GuestI don’t know if related to Slickstack object cache issues or something else. But changing from a new WP theme, my client no longer sees the subcategory tiles under category products archives? Thank you–
July 19, 2023 at 3:25 pm #6728Abigail
GuestOh, and yes they have subcategories enabled in the WooCommerce section in the Customizer, so that is not the cause.
July 19, 2023 at 3:31 pm #6729Brenda
Guesthttps://www.linkedin.com/pulse/woocommerce-displaying-subcategories-mic-sumner/
Here, he suggest deleting woocommerce.php and activate another theme and then activate the new theme again. But, my theme didn’t have any woocommerce.php
July 19, 2023 at 3:38 pm #6730Bobby
GuestDoes your theme include Woo-specific template files? If not, it might just be a “WordPress only” theme that is not fully aware of Woo features existing, and therefore not loading all Woo features properly.
You can try putting
add_theme_support( 'woocommerce' );in your functions.php and see if that changes anything. But, it might break your existing layout.July 19, 2023 at 3:40 pm #6731Kayla
GuestJuly 19, 2023 at 3:43 pm #6732Amanda
GuestJuly 19, 2023 at 3:48 pm #6733Cheryl
Guestso is this caused by individual WP themes?
July 19, 2023 at 3:52 pm #6734Matthew
Guestweird.
July 19, 2023 at 3:54 pm #6735Sharon
Guestso is this caused by individual WP themes?
I had thought so, but seems not necessarily. More like the WooCommerce loop not loading properly. According to this thread it seems like a bug perhaps.
https://wordpress.org/support/topic/categories-not-showing-up-but-subcategories-do-have-products/
They also share some elaborate ways to reset the Woo database queries:
After reading about another situation here on the WP Woo boards, involving migrating from another cart system, I tried a suggested action and got it fixed!
Here’s how I did it.
I created a brand new category called “A Test Category” and a new subcategory called “A Test Subcategory” (naming them so they’d appear at the top of the category list).
I then went into my dashboard product listing and filtered one of the categories that wasn’t coming up, and added the first one to the new subcategory. The result was the test product category did show up with the test subcategory appearing on the next page, then the product I added. AND….
… the missing real Parent category for the product I added showed up! I thought, “maybe this corrects some database structure when I did this”. So I added a product from each of the other four missing parent categories to the new test subcategory.
YES… it made all the missing categories show up! So apparently something just needed a little “kick” by what I did. Everything now shows up.
Hope this helps someone else. Nothing else made sense.
March 2, 2024 at 8:37 am #12590Debra
Guestbecause Woocommerce is unstable and bloated af
December 8, 2024 at 5:18 pm #27010Christine
GuestBy default, WordPress does not show subcategories that are empty.
You have no idea how much hassle and time this issue caused me before I found out.
-
AuthorPosts