This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our next available supporter will start replying to tickets in about 0.53 hours from now. Thank you for your understanding.
Documentation connexe :
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"]
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"
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)
Here is the CPT Painting page template: (other works parent view inserted should show other sibling paintings)
<h3>[types field="artist-first-name" id="$artist"][/types] [types field="aritst-middle-name-s" id="$artist"][/types] [types field="artist-last-name" id="$artist"][/types] [types field="painting-title-or-description"][/types]</h3>
<a href='[types field="painting-image-no-frame" output="raw"][/types]'>[types field="painting-image-no-frame" size="large"][/types]</a><br>
<a href='[types field="painting-image-with-frame" output="raw"][/types]' title='[types field="artist-first-name" id="$artist"][/types] [types field="aritst-middle-name-s" id="$artist"][/types] [types field="artist-last-name" id="$artist"][/types]'>[types field="painting-image-with-frame" size="thumbnail" align="none" resize="proportional"][/types]</a><br>
Medium: [types field="painting-medium"][/types]<br>
Size: [types field="painting-height"][/types]" x [types field="painting-width"][/types]"
<b>Price $[types field="painting-price"][/types]</b>
[types field="artist-biography" id="$artist"][/types]
Back to artist page: [wpv-post-link id="$artist"]
[wpv-post-body view_template="other works parent"]
[wpv-view name="Other works by Taxonomy"]
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)
Please let me know, thanks.
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!)
I found clues in this thread:
I used this code in the painting detail page
[wpv-view name="Paintings Thumbnails" wpvprchildof="[wpv-post-id id='$artist']"]
and set the Paintings Thumbnails view filter to:
Select posts that are children of the Post with ID set by the shortcode attribute wpvprchildof.
My issue is resolved.. can you tell me though, is this just another way to do what is attempted to be explained in the tutorial: https://toolset.com/documentation/user-guides/displaying-brother-pages/ - (and a much simpler way to do it) or am I missing something?
Here is my current live example of this working:
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.