Tell us what you are trying to do?
I have a site in which I have three custom post types:
- Resort
- Park
- Event
There are relationships between:
- Resort to park: one-to-many
-Park to event: many-many
Now I can show events at Park level, but I also would like to show events on Resort level. I can only find documentation to display grandparents fields on child level, or display related child posts.
That is actually not what I'm trying to accomplish. I'm trying to display children at the level of grandparents. In the example that I have, I have an event that I can show at a park (parent), but now I also want to show it at a resort post.
ahh Ok, I understand now. You want to display the grandchild information. It will be more helpful to me if you can share problem URL and details what fields you want to display from what post type?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Thanks Minesh, I can see it as well. There is no other way than doing this in a nested view? Unless I setup a relationship directly between Resort and Events I assume?
Actually no, because you need to loop through the relationship levels that is why it needs the nested view. However, using nested view is good practice and I strongly suggest it to follow that.
Addition another relationship for Resort and Events is another possibility but I do not suggest it until and unless you strongly require it and you have a clear idea about using it.