Skip Navigation

[Resolved] I need help displaying child posts by category and subcategory on parent post.

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

Problem:
Created hierarchal taxonomy of Child CPT (Product) product categories and subcategories. Would like to display child post on parent post page by category and subcategory. would also like to display the products & categories Conditionally, if no product post don't display categories.

Solution:
For displaying child posts, please read this documentation page:
(Querying and Displaying Child Posts) https://toolset.com/documentation/user-guides/displaying-related-child-posts/

For conditional output, please read this documentation page:
(Conditional HTML Output in Views) https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

Relevant Documentation:
https://toolset.com/documentation/user-guides/displaying-related-child-posts/
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

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

This topic contains 3 replies, has 3 voices.

Last updated by milesE 7 years ago.

Assisted by: Noman.

Author
Posts
#582483

Tell us what you are trying to do?
I created to cpts. Farms (parent) and Products (child). I have a hierarchal taxonomy of product categories and subcategories. I would like to display child post on parent post page by category and subcategory.

Category
Subcategory
Product name, Product name, etc.

I would also like to display the products & categories Conditionally, if no product post don't display categories.

Is there any documentation that you are following?
I have tried to follow several of the toolset how to's but can't figure it out.

#582888

Hello,

I’m Mohammed: the Toolset support team leader. I’ll give my best to help you.

**For displaying child posts, please read this documentation page:
(Querying and Displaying Child Posts) https://toolset.com/documentation/user-guides/displaying-related-child-posts/

**For conditional output, please read this documentation page:
(Conditional HTML Output in Views) https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

I hope that this helps you.

Thanks.

#582891

Thanks for helping. I have read those pages but I can't figure out what I am doing wrong. I set up a scenario on a training site to show.
hidden link

#583882

Noman
Supporter

Languages: English (English )

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

Hi Miles,

Mohammed asked me to take over this ticket, I hope that is ok. Have you go through this documentation because it looks like the same what you want to achieve:
https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/

Do you want to create a scenario like this:

Single parent post

Category 1(of child post 1)
Category 2(of child post 2)
...
Sub category 1(of child post 3)
Sub Category 2 (of child post 4)
...

Child post 1, Child Post 2, Child Post 3, Child Post 4

If still any issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and check the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please provide View Edit link, Category and sub-category names, any other link related to this.

Thank you