Skip Navigation

[Resolved] How to display the child value in a parent (list) view?

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

Problem:
How to display conditional data inside views based on child post custom field values

Solution:
We can write custom shortcode to check if a particular post has child post and if that has child post we will get custom field values of child post using "get_post_meta()" function.

Code : https://toolset.com/forums/topic/how-to-display-the-child-value-in-a-parent-list-view/page/2#post-371431

Call the shortcode:

[has_children_of_type post_type="aanmelding" ]

Where:
"aanmelding" is your custom post type for which you would like to fetch child post.

Relevant Documentation:
https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/

This support ticket is created 8 years, 1 month 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)

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by mcjS 8 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#371447

Minesh
Supporter

Languages: English (English )

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

Could you please check now.

#371448

tnx a lot for all the help 😀

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.