post_type == 'spesa') {
$content .= get_post_meta(get_the_ID(), 'ammap_wysiwyg', true) . '
';
$content .= 'Importo: € ' . get_post_meta(get_the_ID(), 'ammap_importo', true) . '
';
$content .= 'Beneficiario: ' . get_post_meta(get_the_ID(), 'ammap_beneficiario', true) . '
';
$content .= 'Dati Fiscali: ' . get_post_meta(get_the_ID(), 'ammap_fiscale', true) . '
';
$content .= 'Norma: ' . get_post_meta(get_the_ID(), 'ammap_norma', true) . '
';
$content .= 'Modalità: ' . get_post_meta(get_the_ID(), 'ammap_assegnazione', true) . '
';
$content .= 'Responsabile: ' . get_post_meta(get_the_ID(), 'ammap_responsabile', true) . '
';
$content .= 'Determina: ' . get_post_meta(get_the_ID(), 'ammap_determina', true) . '
';
$content .= 'Data: ' . get_post_meta(get_the_ID(), 'ammap_data', true) . '
';
} else if ( $post->post_type == 'incarico') {
$content .= get_post_meta(get_the_ID(), 'ammap_wysiwyg', true) . '
';
$content .= 'Soggetto Percettore: ' . get_post_meta(get_the_ID(), 'ammap_beneficiario', true) . '
';
$content .= 'Compenso Lordo Previsto: € ' . get_post_meta(get_the_ID(), 'ammap_importo_previsto', true) . '
';
$content .= 'Compenso Lordo Erogato: € ' . get_post_meta(get_the_ID(), 'ammap_importo', true) . '
';
if ( get_post_meta(get_the_ID(), 'ammap_data_incarico', true) ) {
$content .= 'Data incarico: ' . get_post_meta(get_the_ID(), 'ammap_data_incarico', true) . '
';
}
if ( get_post_meta(get_the_ID(), 'ammap_protocollo', true) ) {
$content .= 'Numero protocollo: ' . get_post_meta(get_the_ID(), 'ammap_protocollo', true) . '
';
}
$content .= 'Data inizio: ' . get_post_meta(get_the_ID(), 'ammap_data_inizio', true) . '
';
$content .= 'Data fine: ' . get_post_meta(get_the_ID(), 'ammap_data_fine', true) . '
';
}
return $content;
} );
?>