Thanks for the details, I think it is possible, but it is little complicated. It needs 3 taxonomy view + 1 post view.
Here is a demo site:
hidden link
username/password: xgren/111111
Here are the detail steps:
1) You will need a custom post type with a hierarchical taxonomy, in above demo, I am using wordpress built-in post type "Posts" and taxonomy "Categories" for example.
2) Setup posts with parent/child terms, see them here:
hidden link
see screenshot posts.JPG and terms.JPG
3) Create a taxonomy view "Top level terms",
hidden link
- query terms of taxonomy "Categories",
- filter by:
Select taxonomy terms whose parent is None.
it will display only the top level terms of "Categories",
- and in the view's loop, display a link to target page, pass URL parameter "terms-filter":
<a href="[wpv-post-url item="2990"]?terms-filter=[wpv-taxonomy-id]">[wpv-taxonomy-title]</a>
The number 2990 is the page ID of step 4)
See screenshot top-level-terms.JPG
- Put it into a page:
hidden link
4) Create a taxonomy view "Get term by URL parameter",
hidden link
- query terms of taxonomy "Categories",
- filter by:
Taxonomy term ID is set by the URL parameter "terms-filter"
It will be able to retrieve the specific term by URL parameter.
- and in the view's loop, display view's shortcode of step 5)
[wpv-view name="sub-level-term"]
- Put it into a page (ID 2990):
hidden link
5) ) Create a child taxonomy view "Sub level term"
hidden link
- query terms of taxonomy "Categories",
- filter by:
Select taxonomy terms whose parent is the value set by the parent view.
it will display terms depends on parent taxonomy view "Get term by URL parameter",
In the view's loop, display the term's link same as step 3) , if there isn't any term found, then display child post view "Posts of current term" of step 6), for example:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<ul class="wpv-loop js-wpv-loop">
<wpv-loop>
<li>
<a href="[wpv-post-url item="2990"]?terms-filter=[wpv-taxonomy-id]">[wpv-taxonomy-title]</a>
</li>
</wpv-loop>
</ul>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpv-view name="posts-of-current-term"]
[/wpv-no-items-found]
[wpv-layout-end]
6) Create a post view,
hidden link
- Query posts
- filter by:
Select posts with taxonomy:
Categories set by the parent Taxonomy View
- In the view's loop, display the post's information, for example:
[wpv-post-link]
[wpv-post-taxonomy type="category" format="name"]
For your reference.