Finally this code bellow works for a single field. Any suggestion, how to include 2 or 3 fields?
function minidatoteka( $atts ){
$value = get_field( "field1");
if( $value ) {
return "Name:"." ".$value;
} else {
echo 'empty';
};
}
add_shortcode( 'mini', 'minidatoteka' );