• Hello,

    I need your help to display post_title of a custom post type.

    My structure consists of three main custom post type : A, B and C.
    C and B are connected by an intermediate custom post type CB, and so CB is the child of C and B.
    B and A are connected by an intermediate custom post type BA, and so BA is the child of B and A.

    On the page C, I can easily display post_title of B with this code:

    $child_posts = types_child_posts(‘CB’);
    foreach ($child_posts as $child_post) {
    $parent_id = wpcf_pr_post_get_belongs($child_post->ID, ‘B’);
    echo get_the_title($parent_id)."\n";
    }

    But I would also display post_title of A on page C. How can I do this ?

    Thank you for your answers.

    https://wordpress.org/plugins/types/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display the relationship’ is closed to new replies.