Back to Community

How to Display Product Counts in Your Max Mega Menu Categories

12 threads Sep 9, 2025 PluginMax mega menu

Content

Many WooCommerce store owners want to display the number of products within each category directly in their Max Mega Menu. This provides a clear, at-a-glance overview of their catalog for shoppers. A common question on support forums is whether this is a built-in feature or how to implement it.

Is This a Built-in Feature?

Based on analysis of community support threads, the ability to show a product count next to a category name in the menu is not a built-in option in the Max Mega Menu plugin. The plugin's support team has consistently confirmed this limitation in user responses.

Why This Feature Isn't Native

The core functionality of Max Mega Menu is focused on menu structure, styling, and widget integration. While it excels at displaying a site's existing menu system in a mega menu format, it does not natively generate or modify the content of the menu items themselves, such as pulling in dynamic data like product counts.

Common Solution: Custom Code

The most frequently suggested solution is to use custom PHP code. This approach modifies the menu output to append the product count for each category menu item.

Important Note: This involves adding code to your site. Always use a child theme and test on a staging site first. The exact code needed can vary depending on your theme and setup.

Community members have had success adapting code from resources like WordPress Stack Exchange. A key step is ensuring the code hooks into the correct Max Mega Menu function. For example, you may need to change a standard WordPress hook like walker_nav_menu_start_el to megamenu_walker_nav_menu_start_el to target the mega menu specifically.

Disclaimer: As this is a custom code solution, it falls outside the scope of standard support offered by the Max Mega Menu team. You may need to consult a developer for assistance tailored to your specific site.

Alternative Solution: Category List Widget

Another method mentioned in threads is to use a widget within a mega menu panel. You can add a "Categories" or "Product Categories" widget to a submenu. Some widgets may have an option to display counts. The behavior of the count (e.g., whether it shows only categories with products) would be controlled by the widget itself, not Max Mega Menu.

This widget-based approach is often simpler but may offer less design flexibility compared to custom code that modifies the main navigation menu items directly.

Conclusion

Displaying product counts in your mega menu requires going beyond the plugin's standard settings. The two primary paths are implementing custom code or utilizing a widget with count functionality. Searching for terms like "wordpress show category count in menu items" can yield further code examples and discussions to help you implement the best solution for your store.