Working on my first Drupal project, I meet this problem for the second time. I can't figure why this happens and couldn't find any leed on the web.
1) A view with contextual filter Content: Has taxonomy term ID (with depth)
- depth = 1
- When argument not in the URL = Show all results
- Vocabulary : the proper (hierarchical) taxonomy is selected
The view has path taxonomy/term/%
The preview is correct, both when entering as an argument a child term ou a parent term.
The view results are correct for any taxonomy/term/[child_term] path.
But for a taxonomy/term/[parent_term] path, I get a message "No content tagged with this term". The sentence is true, but it should return all content tagged with any of the child terms. So, it behaves as if there was no (with depth).
2) Adding to the same view a basic Filter criteria = Content: Type(=[TheRightContentType]).
The preview is ok. But again, the results are not filtered. Even when the argument is a child term, I get all results tagged with that term, but whatever their content type is.
I flushed the browser cache. Then I flushed Drupal's caches. In vain.
Any suggestions appreciated. Thanks.