<section class="contenedor-masProyectos">
    <div class="main-container">
        <div class="contenedor-head">
            <h2><?php echo $this->titulo; ?></h2>
        </div>
        <div class="contenedor-body">
            <?php if($this->items){ ?>
            <?php foreach($this->items as $item){ ?>
            <a href="<?php echo get_the_permalink($item->ID); ?>" class="item">
                <img src="<?php echo get_the_post_thumbnail_url($item->ID); ?>" alt="">
                <div class="contenedor-hover">
                    <h4><?php echo $item->post_title; ?></h4>
                </div>
                <div class="contenedor-titulo-mobile">
                    <h4><?php echo $item->post_title; ?></h4>
                </div>
            </a>
            <?php } ?>
            <?php } ?>
        </div>
    </div>
</section>