Skip Navigation

[Resolved] Need help foe below

This support ticket is created 6 years 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 12 replies, has 3 voices.

Last updated by Minesh 6 years ago.

Assisted by: Minesh.

Author
Posts
#1160904

Do you have any example for below?
Displaying Related Child Posts
Displaying Fields of Grandparents

Like video.

#1161345

Hello,

I assume we are talking about this case:
- Grandparent post type A
-- Parent post type B
--- Child post type C

In a single "Parent post type B" post, you are going to create a view querying posts of "Child post type C", and in this view's loop display "Grandparent post type A" information.

If it is, it is possible, for example:
Create a post view:
- query "Child post type C" posts
- filter by post type relationship between B and C
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items
- and display the grandparent post type A post information:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-fields-of-grandparents/

#1161483

Hi,

Do you have any video example for above actually I already read before and I didn't understand? Or do you have any example website?

#1161752

Sir,

I have a personal project and I need to do post relationship like this.

1. Country
2. State - Many States in one country
3. Province - Many provinces in one state
4. City - Many cities in the province
5. Area - Many in cities
6. Street - Many streets in the city
7. House - Many houses in the street

Regards,
Aamir Khan

#1162722

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Luo is on vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.

Well - Based on the structure you shared and after reviewing that, it seems you need mostly one to Many relationships between post types.

So, following relationship should be created based on your structure you shared:
- A country has many States
- States has many provinces
- provinces has many City
- City has many Area
- City has many street
- Street has many houses

You can check the following Doc and there is a video on top that may help you:
=> https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

We also offer wp-discover-wp.com which as a free test platform using which you can create a test site where you can install any of the available reference sites and play with it.
=> https://toolset.com/faq/how-and-why-to-create-a-test-site-in-discover-wp/

#1163947

Sir,

Below is my test site detail. Please, can you help me to create a relationship? I tried but didn't achieve.

hidden link

Login name: aamir2
Password: 4xfho(kK!DM9

#1163976

I can create a relationship but having an issue to display in the view.

#1164624

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I do not see that you have post types available for states or Area as you mentioned here:
=> https://toolset.com/forums/topic/need-help-foe-below/#post-1161752

Could you be specific with your exact post types and relationships. I can see you created four relationships:
-Cities Streets
- Countries Provinces
- Provinces Cities
- Streets Houses

Now, if you have issue to display the relationship content, could you please specify where exactly you are facing the issue? Could you please share problem URL and tell me what content you want to display.

I have set the next reply to private which means only you and I have access to it.

#1164708

Hi Mr. Minesh,

Below are the custom post type. Country related to State, State related to province and same street related to house. but when i create a view for house all previous post should show.

1 . Country
2. State - Many States in one country
3. Province - Many provinces in one state
4. City - Many cities in the province
5. Area - Many in cities
6. Street - Many streets in the city
7. House - Many houses in the street

#1164711

I create a new custom post type. Please can you help me to create relationship and view how to post result.

#1164755

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - could you please share problem URL with me and what is your expected output.

#1164941

Sir,

I already reset the test site.

#1165356

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I suggest, Please create all required structure, post relationship as described or required, few related test connections (entries) and then should create a view and display your content.

Once you are ready with your post-relationship, content (data) and view and where to display it, please share problem URL and access details with your expected output requirement so that I can guide you in the right direction.