yes, I show the “standard” information alt, full_url ecc.
The issue is on the custom field added to the standard attachment. I attach the code
$prefix = ‘media_’;
$meta_boxes[] = array (
'title' => esc_html__( 'Descrizione Media', 'text-domain' ),
'id' => 'descrizione-media',
'post_types' => array(
0 => 'attachment',
),
'context' => 'normal',
'priority' => 'high',
'autosave' => true,
'fields' => array(
array (
'id' => $prefix . 'Frase2',
'type' => 'textarea',
'name' => esc_html__( 'Frase', 'text-domain' ),
),
array (
'id' => $prefix . 'tag_autori',
'type' => 'taxonomy',
'name' => esc_html__( 'Autore', 'text-domain' ),
'taxonomy' => 'autori',
'field_type' => 'select',
),
array (
'id' => $prefix . 'tag_immagine',
'type' => 'taxonomy',
'name' => esc_html__( 'Tipologia di immagine', 'text-domain' ),
'taxonomy' => 'tipologia-di-immagine',
'field_type' => 'checkbox_list',
'inline' => true,
),
),
);
return $meta_boxes;
those fields are attached to the attachment type.
In my code what is not shown is the “Frase2” custom field
<?php
$images = rwmb_meta(‘select_immagini’);
foreach ($images as $index => $image) {
?>
<figure>
” alt=”<?php echo $image[‘alt’]; ?>”>
<figcaption><?php echo rwmb_meta(“Frase2”); ?></figcaption>
</figure>
<?php } ?>