Toolset query parent post meta

By

        $parent = toolset_get_related_post( get_the_ID(), 'member-application', 'parent');
        $parent_query = new WP_Query( array('post_type'=>'any', 'p' => $parent, 'posts_per_page' => 1) );
        if ( $parent_query->have_posts() ) {
            while ( $parent_query->have_posts() ) {
                $parent_query->the_post();
                    $member_name = types_render_field('member-chinese-name');
            }
        }

Toolset Post Relationship API

Leave a Comment