[Plugin: Types – Custom Fields and Custom Post Types Management] $parent_post ??
-
Hi friends,
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']; ?>Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘[Plugin: Types – Custom Fields and Custom Post Types Management] $parent_post ??’ is closed to new replies.