the question was 1 mill $, at least for me. In the end I get this and it’s working as intended. My problem was how to show a subcategory if you click on a specific “main” category and from there how to display post for that subcategory.
in the end I’ve manage to make that happen, I only need to clean up the mess in my code.
Thank you for your time.