Skip Navigation

[Closed] custom post types relationship displaying

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 11 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

This topic contains 1 reply, has 1 voice.

Last updated by mido 11 years, 10 months ago.

Author
Posts
#11291

Hello,
how to display child CPT within the parent's template, manually without "views" plugin ???
Is there an api for that or some thing?
thanks

#11306

got it !

$child_posts = types_child_posts(‘room’);
foreach ($child_posts as $child_post) {
echo $child_post->post_title;
echo $child_post->fields['description'];
}

thanks

The topic ‘[Closed] custom post types relationship displaying’ is closed to new replies.