Meta Box: display single image on an archive-template

I’m trying to get the url of an image from a MetaBox (plugin) filed on an archive-page.

<?php
if ( rwmb_meta( ‘field-id’ ) ) {

// Get images
$img_srcset_large = rwmb_meta( ‘field-id’, array( ‘size’ => ‘image-size’, ‘limit’ => 1 ) );

echo $img_srcset_large[‘url’]

?>

Unfortunately there is nothing displayed.
Can you give me a hint how this code can work on archive-templates?
Best

Read more here:: Meta Box: display single image on an archive-template

Leave a Reply

Your email address will not be published. Required fields are marked *