Skip Navigation

[Resolved] Displaying Sibling/Brother Posts

This support ticket is created 8 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 10 replies, has 2 voices.

Last updated by Boris 8 years, 3 months ago.

Assigned support staff: Waqas.

Author
Posts
#309880

Hello

I read all the documentation and read more than 10 threads here about displaying brother posts in the child post page:

https://toolset.com/documentation/user-guides/displaying-brother-pages/

and much more here:
hidden link

I've been dealing with this whole day without success.

I can provide login details, I would be happy if someone from the support team could help.

Thanks

#310086

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Can you please explain a little bit more about your setup? and the problem as well. So I can have an understanding that where are you facing the issue with brother posts/pages.

#310091

Hello Waqas,

Sorry, It seems I answered to the wrong post.

Please move this reply:
https://toolset.com/forums/topic/views-displays-incorrect-information/#post-310073

to this post.

Thanks.

#310398

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Please pardon me for not being able to move that reply here. Can you please put that information again? I have enabled private details area for your next reply.

Also please remember to provide correct reply on the other thread as well. I supposedly accepted that information. After you provide the correct information on both threads, I will be able to remove the unrelated information, thanks.

#310691

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I just wanted to update you about the new release of Views (1.9) and Types (1.7) plugins (as well as the beta release of CRED 1.4). Can you please upgrade to latest versions and see if these help resolving the issue?

Please let me know if these do not help, so I can continue with my investigation about the issue, thanks.

#310805

Problem still exist.

The truth I am disappointed, I've been waiting four days to get a normal answer which explains how to display a sibling/brother post.

I even sent all the required login details.

And I find myself stuck unable to move forward because of the slowness of support.

Thanks.

#310917

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I apologize for this, actually I tried to update the plugins, so I can have latest fixes and features to resolve this matter more efficiently - but somehow I wasn't able to do that.

Anyhow, I am looking into this thread and will update you soon (today).

Thank you for your patience and cooperation.

#310952

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

view filter post relation.png

Please see it working at hidden link - let me explain the steps how I did this.

1) Since Companies and Workers have relationship (Parent > Child respectively), it's much easy to do the job. You have already done the same in your content template like below:

Company: [wpv-post-title id="$compane"]

2) I created a new View (Other People in Same Company), which just lists down the "Workers", filtered by post relationship and configured to accept the short code attribute "wpvprchildof" (see attached image). I will use this attribute later to pass the "ID of the Parent post, where the View is inserted". I used table layout to list all workers' details.

3) Then I inserted this view at end of your existing content template (worker-info). And used "wpvprchildof" to pass the ID of the Parent of current post, just like below:

[wpv-view name="Other People in Same Company" wpvprchildof="[wpv-post-id id='$compane']"]

Please notice that the additional attribute is having View's short code [wpv-post-id] but with the parent post reference (just like you did before). So when this Content Template is rendered, it renders the View as well. And pulls the posts based on the parent post ID.

I hope this explains in detail about how you can mix up Views and Content Templates within each other, and how you can pass information between Views. Please see following resources for more information:

- https://toolset.com/documentation/user-guides/using-a-child-view-in-a-taxonomy-view-layout/
- https://toolset.com/documentation/user-guides/passing-arguments-to-views/
- https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/

I hope this resolves the issue as well.

#311024

Hello

Thanks for assistance.

I just want to know if "wpvprchildof" is something you created or it is a an integrated feature in the plugin?

Thanks

#311751

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

"wpvprchildof" is just name of the short code attribute, it can be anything of your choice. You can change this name in the place shown in the screen shot (I sent in my previous message). If you change it, please remember to use the same attribute name with [wpv-view] short code.

#311757

Thanks