It is actually possible to display the grandchild on the Grandparent post.
However for this to be done you will need to create a nested view setup where you'll have the Parent View and the Child view.
Where the Child View is nested inside the Parent view and then the Parent view is added to the Grandparent post template.
Are you aware of how to do the nesting of views to get the correct post relationship information ? Also this requires the use of the classic view setup.
Please let me know so that I can provide additional information for you to get this done.
As mentioned this will require the classic view setup.
If the classic view hasn't been enabled you can enable it by going to Toolset -> Settings and scrolling to Editing Experience. From there I recommend that you select " Show both the legacy and Blocks interface and let me choose which to use for each item I build".
This will allow you to have access to the classic editor as well as the block editor. From there refresh the page and go to Toolset -> Views.
First you will need to create your Grandchild view by going to Toolset -> Views and clicking Add New view, select your grandchild post type and under the query filter section you will add the Post Relationship filter, then select "The current post in the loop"
From there you can go to the Loop Wizard section and using this button add the data that you want the view to display.
Secondly you will need to create the Parent View. Repeat the step above to create your Parent view and then for the Post Relationship filter select "The post where this View is shown"
Now under the loop editor section you will add your grandchild view's shortcode within the <wpv-loop></wpv-loop> shortcode.
Here is an example
<wpv-loop> [wpv-view name='my-slug']</wpv-loop>
Where "my-slug" is the slug of my grandchild view.
Finally just add your Parent view to the Grandparent post template.
Just one moment. Posts are ordered by date but listed by each grandchild. First all posts of one grandchild, then all posts of second , etc. Is is possible to order posts by date among all grandchild posts?
Unfortunately not. If I understand correctly your posts are ordered by their dates based on the current parent that is being used to display the post.
Example: this is how it is currently being displayed
Parent A
Child B
Child D
Parent B
Child A
Child C
THis is how you want to to be displayed
Child A
Child B
Child C
Child D
Unfortunately you won't be able to do it like this given that the grandchild's view is dependent on the parent view, so it is being sorted relative to the parent being displayed.
Shane, when I add filters in parent and child posts it influence on display inside. I see only authors posts.
But it's required to display Grand parent posts who those who are a part of parent and child. While parent and child posts should contain all posts of all respective users.
Please advise whether this questions can be solved as part of current topic or need to raise new one.
If I understand correctly only the Grandparent should be listed based on the current user ? All the others Parent/Child should be dependent on the grandparent correct?
We can continue in this thread since it is essentially the same issue.
Still a little unsure of what is required because without the Author filter on both views it should display all the posts belonging to the grandparent by default.
Perhaps you can provide me with access to the site to see what is being listed?
My assumption here was that you were listing the children on the grandparent's frontend page.
The content template here hidden link
It's not assigned to any post type.
Is it that you're creating a page listing the grandparents but you only want the grandparent post that the current user creates and then under that grandparent you want to list all the other posts in the relationship regardless of the author ?
not exactly: you only want the grandparent post that the current user creates
comments: grandparent should be visible for user which created it AND FOR USERS CREATED CHILD POSTS. And all posts in the relationship should be visible for all such users.
correct: under that grandparent you want to list all the other posts in the relationship regardless of the author