<?php /* Template Name: NEWS */ ?>

<?php get_header() ?>


<!-- archivio articoli -->

<section class="news_home padding-top-azienda padding--vh mb-5 animazione--appare--up">

      <div class="container-80">
        <!-- LOOP POST EVENTI -->

        <div class="row">
            <div class="col-lg-4 col-md-12">
                <div class="intro_sezione">
                    <h1><?php echo  single_cat_title(); ?></h1>
                </div>
            </div>

            <div class="col-md-8">
                <?php while ( have_posts() ) : the_post(); ?>

                <a href=" <?php the_permalink(); ?>">
                    <div class="single_news activate_caption">
                        <div class="single_news__date"><?php echo get_the_date('d-m-y'); ?></div>
                        <div class="single_news__line"></div>
                        <div class="single_news__title">
                            <div class="intro_news">News</div>
                            <?php the_title() ?>
                        </div>


                        <!-- === caption on hover ==== -->
                        <div class="caption caption_news" style="background-image:url(<?php echo get_the_post_thumbnail_url(get_the_ID(),'anteprima_prodotto'); ?>)">
                        </div><!-- caption -->

                    </div>
                </a>


                <?php endwhile; ?>
            </div>
        </div>
    </div>
    <div class="clearfix"></div>

    <!-- paginazione multipagina con link -->
    <div class="paginazione_post">
        <?php paginazione_post(); ?>
    </div>

</section>

<?php get_footer() ?>
