Tell us what you are trying to do? I'm trying to get the top post of a hierarchy.
Is there any documentation that you are following? I used the Select top-level posts with no parent. But I now realize that it gets all top parents. I just need it for the current hierarchy.
I did create a view to crawl up the hierarchy, however, I need to include this view in another, and it seems it doesn't like three nested shortcodes.
[wpv-view name="get-course-content" ids="[wpv-view name='get-root-id-for-hierarchy' ids='[wpv-post-id]']" root="true" content="[wpv-post-field name='wpcf-course-content-type']"]
This is the one it breaks on [wpv-view name='get-root-id-for-hierarchy' ids='[wpv-post-id]']
On its own it works, but not when using in another view.
So, I figured, maybe create a container around it that just get the id from the current page viewed, that would work, but there seems to be no way to get that in a view either.
So, the solution I need, is to be able to nest this [wpv-view name='get-root-id-for-hierarchy' ids='[wpv-post-id]'] in [wpv-view name="get-course-content" ids="[wpv-view name='get-root-id-for-hierarchy' ids='[wpv-post-id]']" root="true" content="[wpv-post-field name='wpcf-course-content-type']"]
Or create a another view that gets the id of the current post, in that one I will use the other view, i.e. [wpv-view name='get-root-id-for-hierarchy-container']
So, it would be [wpv-view name="get-course-content" ids="[wpv-view name='get-root-id-for-hierarchy-container']" root="true" content="[wpv-post-field name='wpcf-course-content-type']"]
In other words, I'm getting around the fact the shortcode can't be nested three levels.