@ Fabrice
re: If I would get the name of the category I can get it with $term->name (in a foreach loop)? Yes, the term name will be included in the results.