That's great thank you. I found one more issue. When I make a meta box group section with a photo. I get a real error that stops my single post template from fully functioning. Here is the group field code that caused this new error:
'name' => __( 'Add Co-Author', 'your-text-domain' ),
'id' => $prefix . 'add_co_author',
'type' => 'group',
'clone' => true,
'fields' => [
[
'name' => __( 'Co-author Full Name', 'your-text-domain' ),
'id' => $prefix . 'co-author_full_name',
'type' => 'text',
'clone' => true,
],
[
'name' => __( 'Co-author Email', 'your-text-domain' ),
'id' => $prefix . 'co-author_email',
'type' => 'email',
'clone' => true,
],
[
'name' => __( 'Co-author - Lead_YN', 'your-text-domain' ),
'id' => $prefix . 'co-author_lead_yn',
'type' => 'radio',
'options' => [
'y' => __( 'Lead author', 'your-text-domain' ),
'n' => __( 'Not lead author', 'your-text-domain' ),
],
'clone' => true,
'inline' => false,
],