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' );
And another question – how would in the same shorcode include several fileds so that the result would be:
Name: value1
Last name: value2
Phone: value3
…
Hi I tried this, but it still does not return Name: value, it is just value