Skip Navigation

[Resolved] How to display child posts without Views?

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

Problem:
How to display child post without using views but using PHP API

Solution:
you can display the output using view or using PHP API, without writing PHP how can we expect something to display. So basically there are only two way, either use views or PHP.

We have great Doc available that will guide you how you can display parent posts using PHP:
=> https://toolset.com/documentation/customizing-sites-using-php/displaying-parent-posts/

How you can display child posts using PHP:
=> https://toolset.com/documentation/customizing-sites-using-php/displaying-child-posts/

Relevant Documentation:
=> https://toolset.com/documentation/customizing-sites-using-php/displaying-child-posts/

This support ticket is created 7 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 5 replies, has 2 voices.

Last updated by StanleyT8485 7 years ago.

Assisted by: Minesh.

Author
Posts
#598020

Tell us what you are trying to do?
I am finding a way to display child posts without Views.
The reason for this is my website is going to be big and there will be over 10,000 parent posts with 35,000 child posts and I'm worried about the performance.

Hence, I'm looking to find another solution to show child posts without Views.

Is there another way around this? Other than writing PHP too?

#598133

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - you can display the output using view or using PHP API, without writing PHP how can we expect something to display. So basically there are only two way, either use views or PHP.

We have great Doc available that will guide you how you can display parent posts using PHP:
=> https://toolset.com/documentation/customizing-sites-using-php/displaying-parent-posts/

How you can display child posts using PHP:
=> https://toolset.com/documentation/customizing-sites-using-php/displaying-child-posts/

#598338

Minesh
Supporter

Languages: English (English )

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

Adding my comment here to set correct status for this ticket.

#598352

Hey Minesh,

Can you advise on the performance of a website when display child posts WITH views for 15,000 parent posts?

Will this cause a slow down in the performance when there are multiple visitors querying for multiple parent posts at the same time? Or will the server automatically cache the results on the server?

#598367

Minesh
Supporter

Languages: English (English )

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

Well - we have Doc available that guide you how you can use view's on large sites:
=> https://toolset.com/documentation/user-guides/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

#598818

I have found my answer from the post you linked. Thanks!