I'm new creating wordpress themes, but I was recommended to use MetaBox a wordpress plugin to create Custom Goals almost easily, well the problem arises when I want to show the images that I put in my post using the new goal generated by this plugin ; When I want to do the call inside a loop, it does not stop the content, I only get "ARRAY", but with the fields I use the same goal if you show them to me.
<?php
add_filter( 'rwmb_meta_boxes', 'mc_register_meta_boxes' );
function mc_register_meta_boxes( $meta_boxes ) {
$prefix = 'mc_';
$meta_boxes[] = array(
'id' => 'standard',
'title' => esc_html__( 'Standard Fields', 'mc' ),
'post_types' => array( 'post', 'page' ),
'context' => 'normal',
'priority' => 'high',
'autosave' => true,
'fields' => array(
// IMAGE ADVANCED
array(
'name' => esc_html__( 'Image Advanced Upload', 'mc' ),
'id' => "{$prefix}imgadv",
'type' => 'image_advanced',
'max_file_uploads' => 4,
),
),
);
return $meta_boxes;
}
This way I place them inside a loop.
<?php echo rwmb_meta('mc_imgadv'); ?>
the result is always the word ARRAY, and it does not show me the image (s) loaded.