<?php //SI EXISTE EL CAMPO if(get_field(fecha_de_entrega)){ ?> <div style="margin-bottom: 15px;"> <?php $texto = get_field(fecha_de_entrega); ?><span style="font-size: 16px;font-weight: 800;">La fecha aproximada de entrega son </span> <span style="color:#EC554E;font-weight: 800;"><?php echo $texto;?></span> </div> <?php }?> ?> //CON ARRAY <?php if(get_field(archivo_pdf)){ ?> <div class="descargarpdf"> <span>Descargar:</span><br/><?php $imagen = get_field(archivo_pdf); ?><a href="<?php echo $imagen['url']; ?>" target="_blank"><?php echo $imagen['title']; ?><img src="https://www.ortopediaplaza.com/wp-content/uploads/2015/12/text-file5-3.png"></a> </div> <?php }?>