<?php /* Template Name: ARCHIVIO PORTFOLIO*/ ?>

<?php get_header() ?>

<?php

    $args = array(
    'post_type' => 'portfolio',
    'posts_per_page' => 10,
    'order' => 'DESC'
);
    $query = new WP_Query($args); ?>
<?php if( $query->have_posts() ) { ?>

<section class="portfolio-hero portfolio-canva">

    <div class="swiper-container">
       <div class="swiper-wrapper">

         <?php while( $query->have_posts() ) : $query->the_post(); ?>


        <div class="swiper-slide swiper-slide-vertical">
          <a href="<?php the_permalink() ?>" class="swiper-slide-content">
    			  <img class="img-fluid" src="<?php echo get_the_post_thumbnail_url(get_the_ID(),'large'); ?>">
              <h3 class="swiper-link title-overlay"><?php the_title() ?></h3>
            </a>
        </div>

        <?php endwhile; ?>

      </div>
    </div>


    <!-- Add Pagination -->
    <div class="swiper-pagination swiper-pagination-vertical rotate-90">
      <!-- Add Arrows -->
      <span class="swiper-button-prev">Prev /</span><span class="swiper-button-next">Next</span>
    </div>


</section>
<?php } ?>
<?php wp_reset_postdata(); ?>



<div class="cursor-dot-outline"></div>
<div class="cursor-dot"></div>

<?php get_footer() ?>
