I would like to show products and subcategories of a macro-category but I DON’T want to show the products of the subcategories.
Here’s an example of my problem: http://www.idromet.it/jml/wp/categoria-prodotto/prodotti/tubi-raccordi-acciaio-al-carbonio/
“Raccordi in ghisa zincati” is showed 2 times because the first is the category (and its right), the second one is the product of that sub-category (and I don’t want to show it in here).
The code below should be pasted in the functions.php file located in your child theme folder.