diff --git a/cmb2-attached-posts-field.php b/cmb2-attached-posts-field.php index 6cdc6b9..3e15700 100644 --- a/cmb2-attached-posts-field.php +++ b/cmb2-attached-posts-field.php @@ -81,7 +81,7 @@ public function render( $field, $escaped_value, $object_id, $object_type, $field // Open our retrieved, or found posts, list echo '
'; - echo '

' . sprintf( __( 'Available %s', 'cmb' ), $attached_post_type->labels->name ) . '

'; + echo '

' . sprintf( __( 'Available %s', 'cmb' ), implode( '/', $post_type_labels ) ) . '

'; // Set .has_thumbnail $has_thumbnail = $field->options( 'show_thumbnails' ) ? ' has-thumbnails' : ''; @@ -118,7 +118,7 @@ public function render( $field, $escaped_value, $object_id, $object_type, $field // Open our attached posts list echo '
'; - echo '

' . sprintf( __( 'Attached %s', 'cmb' ), $attached_post_type->labels->name ) . '

'; + echo '

' . sprintf( __( 'Attached %s', 'cmb' ), implode( '/', $post_type_labels ) ) . '

'; if ( $filter_boxes ) { printf( $filter_boxes, 'attached-search' );