Home / Forums / WoodMart support forum / Show Sub Categories using Product Categories WP Bakery Block on Product Pages
Home › Forums › WoodMart support forum › Show Sub Categories using Product Categories WP Bakery Block on Product Pages
Show Sub Categories using Product Categories WP Bakery Block on Product Pages
- This topic has 5 replies, 2 voices, and was last updated 1 day, 21 hours ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
December 2, 2025 at 4:03 am #698663
sfanousParticipantHi,
How can I show sub categories as well as categories when using the Product Categories WP Bakery Block? Right now it only shows top level categories (see attached)
I would like to display every category a product is in on the product page. Is their a better way to do this? I have the Product Categories WP Bakery Block showing the high level categories right now, but I would like it to show all the categories.
Thank you,
Steve
Attachments:
You must be logged in to view attached files.December 2, 2025 at 3:33 pm #698807
Aizaz Imtiaz AwanKeymasterHello,
Please share the page URL of the product page where product categories are added and share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards,
December 2, 2025 at 4:13 pm #698824
sfanousParticipantAdded. Thank you!
December 3, 2025 at 11:38 am #698930
Aizaz Imtiaz AwanKeymasterHello,
It looks like the reason your categories are not appearing is because the “Hide empty categories” option is enabled in your Product Categories widget.
If a category has no products assigned to it, it will be hidden.
Please edit your Single Product Layout > Category widget, disable Hide empty, and then check again. After disabling it, all categories should become visible.
Also, if you want to display the categories automatically based on the product, you can use the Product Meta widget in the layout. This widget shows all categories assigned to each product automatically on every product page.
Best Regards,
December 3, 2025 at 4:41 pm #699020
sfanousParticipantWhat I need has nothing to do with “Hide Empty Categories” because then all high level categories will be visible. I only want the categories that particular product is in to appear. I don’t want them all to appear.
The Product Meta widget does show the categories that the product is in. It works exactly how I want it to work however I would like the category icon format to be displayed, like in the example I shared. The Product Meta Widget is only plain text.
Is there a way we can add a hook to the function file to make the icons appear on product pages using the Product Meta Widget?
Thank you
December 4, 2025 at 12:36 pm #699175
Aizaz Imtiaz AwanKeymasterHello,
Unfortunately, the Product Meta widget only outputs plain text category links, and it does not support showing category images/icons. That icon-style layout is available only in the Product Categories WPBakery element, which displays categories statically — not dynamically based on the current product.
WoodMart does not provide a built-in option or hook to replace the Product Meta output with category images. Adding icons would require custom PHP code to rebuild that widget’s output, which is outside theme support scope since the element was not designed for icons.
Best Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register