cesardpaz
9/12/2019 - 5:00 PM

Get data desde panel

Obtener data desde Panel

1. Data

$data = rwmb_meta( 'id_field', array( 'object_type' => 'setting' ), 'theme_option' );

2. Imagenes

$images = rwmb_meta( 'id_field', array( 'object_type' => 'setting', 'size' => 'full' ), 'theme_option' );

if($images){
    foreach ( $images as $image ) {
        echo '<a href="', ['full_url'], '"><img src="', $image['url'], '"></a>';
    }
}