List categories just if have posts

Hello,

On my page, I have a blog section using the recent posts widget.
Above it, I have a list of the categories.

On this list, there are some categories that don’t have posts created yet.
How to not list these categories?

Thanks!

Hello there,

Try this widget:

https://wordpress.org/plugins/pro-categories-widget/.

Regards,
Kharis