This should be very simple but apparently is NOT... or something is off.. I'm also finding articles referencing mistakes in the brothers/posts tutorial...
here is my relationships - I have followed the tutorial with NO RESULTS
artist (parent CPT)
painting (child CPT)
template: other works parent
content: [wpv-view name="other works by artist"]
template: brothers
content: [wpv-post-body id="$parent" view_template="other works parent"]
view: other works by artist
CPT paintings checked
have tried both filters: "Select posts that are children of the Post set by parent view"
and
Select posts whose parent is the current page
content: loop view for painting thumbnails
There seems to be quite a few posts/questions and issues around this... please clarify and point out any issues in my template/view relationships. This is being used to show other paintings from the same artist - I've already setup similar views by taxonomy (other paintings in "this" category) without issue. This brother posts issue has been very frustrating.
Please pardon me for not fully understanding the purpose, but as far as I could understand, your CPTs have a plain Parent->Child Relationship. As per my understanding, do you want to list child posts of a parent post? If this is the case, this guide https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/ might be helpful.
On the other hand, can I ask for more explanation on this scenario? i.e. Parent->Child CPT relation in the context of brother posts.
Please let me know if I can help you with anything related.
sure... where is it reads "No Results" right before the other works by taxonomy it should show other works by this artist (the child's parent posts) hidden link
Here is the CPT Painting page template: (other works parent view inserted should show other sibling paintings)
Thank you for providing the code, I am trying to understand the whole scenario. But for more better understanding, can you please share the screen shots for:
- Filters area of your views (Query Filters section, showing all filters in use or full page)
- Content Templates (full page)
Screenshots attached... I really think the structure is wrong in the tutorial or it's not explained well. This should be a fairly common requirement. I need to list sibling CPT's under a parent CPT in the child page, not within the parent page, that would simply be listing child posts.
Why is there no option to simply insert a view in the painting detail page (CPT "painting") with a view filter that is = "show the sibling posts, excluding the result of the page currently on"... or "show posts of parent page.." you get the idea.. why a template nested in a template with a view in a template with a parent id.. etc. etc.. seems way to complicated.
Please let me know if I can message you a user account.
(526 and 525 screenshots are duplicated in this post... "edit" will not allow me to correct this, erkkkk!)
Thank you for your feedback and I am glad that issue was resolved. Actually, there can be several good ways to do a single thing. Our guides describe a generic scenario, which is easy to understand for all. But of course in certain (special) scenarios, these can not be enough food for ones thoughts.
We are trying our best to improve our documentation with more examples and useful stuff.
Thanks again for your cooperation and kind feedback.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.