Skip Navigation

[Resolved] Displaying Related Child Posts

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to display related child posts of current post and display it as left sidebar and in right part display the selected post content

Solution:
You should build a parametric search view and build layout to display view's search form on left part and view's output in right part.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/displaying-related-child-posts-2/page/2/#post-623345

Relevant Documentation:

This support ticket is created 6 years, 8 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
- 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 25 replies, has 3 voices.

Last updated by oriolc 6 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#620273

Hi!
I'm trying to show child posts inside a parent post.
I'm using types, views and creed beta to test it.

I'm following that tutorial: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-related-child-posts/ but I'm doing something wrong.

I've created a parent post (flaneur-assegut with slug: assegut) and a child post (apunts). I had created a one-to-many relationship.
That child post have some custom fields.

I'll like to show a link list with all my child posts inside my parent post and when the customer click the link it appears the content of that custom fields. That's different from the link tutorial that I inserted above, cause the example insert wpv-post-body, not custom fields.

Another problem is that this link list have an url that brings me to another page and don't load the custom fields.

I would like to do something similar that you have in that page: https://toolset.com/documentation/getting-started-with-toolset/installing-toolset/ with links in one side and text appears in the other side inside a parent post.

Can you help me????

#620301
error_2.jpg
error_1.jpg

Another problem is that appears two errors in the parent page, as you can see in the following images.
It appears this two errors each time I insert a child post to the parent post. When I insert the first one, it appears this two. When I insert another one, it appears this two errors two times...
I don't know if this can be the problem...
By the way, I'm using toolset starter child theme.

#620457

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - you should create a view to display child posts and add that view as sidebar to display your related child posts.

Regarding the other errors you shared with screenshot - Could you please open a new ticket with your each new question. This will help other users searching on the forum.

Could you please send me problem URL where you want to display your parent and child posts and maybe few screenshot where you want to display what information.

*** 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.

#620862

Minesh
Supporter

Languages: English (English )

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

Well - You should add your required custom field to your view's template so it will display it.

As you can see with following URL:
hidden link

I've added the following custom fields to your view's template:

<li>
 [wpv-post-link]

 [types field="titol-principal"][/types]

 [types field="titol"][/types]
  
[types field="persona-qui-lha-escrit"][/types]
  
[types field="text"][/types]
</li>

You should format the display it as per your need.

#620863

Yes, but when I click the link this send me to another page.
I want to upload the content in the same page via ajax or as this page: https://toolset.com/documentation/getting-started-with-toolset/installing-toolset/
There is a way to do it?

#620866

Minesh
Supporter

Languages: English (English )

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

Well - what you want to upload and to which post type.

Do you want to upload something from frontend to your child post Apunts? If yes:

Have you seen this:
=> https://toolset.com/documentation/user-guides/cred-forms-for-child-content/

#620870

Nop,
I want to show different apunts child in the same parent page.
The way to upload I have solved it.
It's the way to show it.
In the page you enter the custom fields, inside the view, I want to click in links and the content appears next to, but without to change the page, as the examples I show you.
I put you a web that I need to replicate: hidden link

#620882

Minesh
Supporter

Languages: English (English )

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

Well - I see that on left side bar it displays the Apunts posts and on right hand side it displays the parent post content.

Do you want to add sidebar to your post and in sidebar you want to display the Apunts posts links?

#620902

Yes,
But now, in toolset, that links send me to apunts post and i want that links, after click, just show appunts custom fields in left side, without changing the parent page (AJAX upload).
I don't kwon if I can create a views filter to do it or how can I do it?
I supposed that with this toolset tutorial: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-related-child-posts/ I can do it.
But I think I'm doing something wrong....

#621267

Hello,

Minesh isn't available currently, you will get answer in the answer when he is back on next Monday

#621300

Ok. I will wait. Thanks.

#622015

Has returned Minesh????

#622034

Minesh
Supporter

Languages: English (English )

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

Well - could you please try to add first sidebar to your page and add view's filter to it.

#622278

Minesh,
I tried all the possible solutions to follow that tutorial: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-related-child-posts/
As I explained before, I created parent post (Flaneur assegut) and child post (Apunts).
I follow line by line that tutorial but I'm doing something wrong. That's my result: hidden link
I just want to show a link list (that I can do it) but I don't want to show post body result. I want to show my child custom fields (Apunts). But nothing appears in content and links url brings me to another page.
I tried to do it with filter, but I can't create a list of links title.
I tried to do it with beta types (the website use it) and production types (localhost).
At the end, can you tell me how to do it? Cause following tutorial won't appears content.
As I told you before, I want to replicate that website: hidden link.

By the way, the error that appears in the other topic I closed, waiting for an answer: https://toolset.com/forums/topic/errors-in-administration/ is due to use a repeating field in a child post. When I use production types, in parent post appears info telling me I can't insert child posts with repeating fields.

#622485

Minesh
Supporter

Languages: English (English )

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

By the way, the error that appears in the other topic I closed, waiting for an answer: https://toolset.com/forums/topic/errors-in-administration/ is due to use a repeating field in a child post. When I use production types, in parent post appears info telling me I can't insert child posts with repeating fields.
===> This is reported and our Devs will work on that. I will get in touch with you when I will know more on it.

As I explained before, I created parent post (Flaneur assegut) and child post (Apunts).
I follow line by line that tutorial but I'm doing something wrong. That's my result: hidden link
I just want to show a link list (that I can do it) but I don't want to show post body result. I want to show my child custom fields (Apunts). But nothing appears in content and links url brings me to another page.
==> Well - something is wrong then with your setup or theme you are using. Basically you need two columns layout to display with your page where one column will hold the filter and one column will display the content.

First of all - I suggest you to use stable Toolset plugins instead of Beta version and setup your site with stable Tooset plugins and let me know as lot of work is on going to implement M2M relationship with all Toolset plugin. I suggest you should always use stable Toolset plugin first and build your content and then I will start to look in to your issue.