Create Filter for categories

I created a classifieds page with the CMS feature however, I would like to filter the categories with something like the attached screenshots

Any thoughts? Thanks

Filter your search by our categories:

I think this answer from April may still be up-to-date

https://discourse.webflow.com/t/drop-down-menu-with-sorting-function/2479/4

Thanks for the link, let’s check it out