Support

Account

Home Forums General Issues Display title of custom post type within a relationship field Reply To: Display title of custom post type within a relationship field

  • 
    $post_type = get_post_type($featured_post->ID);
    $post_type_object = get_post_type_object($post_type);
    $labels = get_post_type_labels($post_type_object);
    echo $labels->singular_name;