query_vars['post_type']) && $wp->query_vars['post_type'] == 'avcp') {
if (have_posts()) {
add_filter('the_content', 'avcp_job_cpt_template_filter');
} else {
$wp_query->is_404 = true;
}
}
}
function avcp_job_cpt_template_filter($content)
{
global $wp_query;
$jobID = $wp_query->post->ID;
//echo get_post_meta(get_the_ID(), 'ammap_wysiwyg', true) . '
';
echo '
';
echo '
';
echo '| CIG: | ' . get_post_meta(get_the_ID(), 'avcp_cig', true) . ' |
';
echo '| Struttura proponente: | ' . get_option('avcp_denominazione_ente') . ' ' . get_option('avcp_codicefiscale_ente') . ' |
';
echo '| Oggetto del bando: | ' . get_the_title(get_the_ID()) . ' |
';
echo '| Procedura di scelta del contraente: | ' . get_post_meta(get_the_ID(), 'avcp_contraente', true) . ' |
';
echo '| Importo di aggiudicazione: | ' . get_post_meta(get_the_ID(), 'avcp_aggiudicazione', true) . ' |
';
echo '| Data di effettivo inizio: | ' . date("d F Y", strtotime(get_post_meta(get_the_ID(), 'avcp_data_inizio', true))) . ' |
';
echo '| Data di ultimazione: | ' . date("d F Y", strtotime(get_post_meta(get_the_ID(), 'avcp_data_fine', true))) . ' |
';
echo '| Importo delle somme liquidate: | ' . get_post_meta(get_the_ID(), 'avcp_somme_liquidate', true) . ' |
';
echo '| Anno di riferimento: | ';
$get_avcp_dis_archivioanni = get_option('avcp_dis_archivioanni');
if ($get_avcp_dis_archivioanni == '1') {
echo strip_tags (
get_the_term_list( $post->ID, 'annirif', '', ' - ', '' )
);
} else {
echo get_the_term_list( $post->ID, 'annirif', '', ' - ', '' );
}
echo ' |
';
echo '
';
echo '