To get a child post of a custom post type, we can use this function:
<?php echo $child_post->fields['my_field']; ?>
What should I do if I want to get the parent post of some child? I tried this and it didn´t work:
<?php echo $parent_post->fields['my_field']; ?>
- The topic ‘[Plugin: Types – Custom Fields and Custom Post Types Management] $parent_post ??’ is closed to new replies.