I created a select field in Metabox CPT backend that has two values
<div>
'type' => 'select',
'name' => esc_html__( 'Collection', 'online-generator' ),
'id' => $prefix . 'collection',
'options' => [
'Roma Livres' => esc_html__( 'Roma Livres', 'online-generator' ),
'Hors Collection' => esc_html__( 'Hors Collection', 'online-generator' ),
],
</div>
The I try to retreive the selected value in frontend post tempalte using this code:
<div>
<?php $collection = get_post_meta( $post->ID, $value, 'edgr_collection', true );?>
<div class="isbn">Collection: <?php echo $collection ?>
</div>
</div>
But the output is "Array" (all other fields type are printed correctly!)
Example URL below:
https://www.editionsdegrenelle.fr/livre/la-bonne-education/