<!-- PRIMA POSIZIONE -->
<div class="articoli_home_prim grid col-940" style="text-align: justify; ">
<?php query_posts('posts_per_page=1&cat=2'); ?>
<?php while (have_posts()) : the_post(); ?>
<h1 class="titolo_1"><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
<h3 class="sottotit_1"><?php echo get_field('sottotitolo_post_primari'); ?></h3>
<h4 class="info_post_1">PUBBLICATO IL <?php the_date();?> DA <?php echo $author = get_the_author(); ?> </h4>
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<div class="post_1_img"> <img src="<?php echo $image[0]; ?>" />
</div>
<?php endif; ?>
<div class="cont_1">
<div class="grid avatar_1">
<!-- AVATAR AUTORE -->
<div class="avatar_1_p">
<?php echo get_avatar( get_the_author_meta('ID'), 140); ?>
</div>
<div class="aut_name_1" style="font-size: 85%;"> <span class="aut_btn_1"> di <span style="text-transform: uppercase;"><?php echo $author = get_the_author(); ?></span></span>
</div>
</div>
<div class="testo_1_pos <div class="grid col-720">
<?php echo wp_trim_words( get_the_content(), 220 ); ?>
<?php endwhile;?>
<?php wp_reset_query(); ?>
</div>
</div>
<div class="divid_com_1">
<?php comment_ID();?>
</div>
</div>