<section class="contenedor-proyectos">
    <div class="main-container">
        <div class="contenedor-filtro">
            <?php
                $terms = '';
                $terms = get_terms([
                    'taxonomy' => 'categoria',
                    'hide_empty' => false,
                ]);
            ?>
            <?php if($terms){ ?>
            <a href="#" data-filtro="0" class="item text-menu active">
                <span>Todos</span>
                <div class="contenedor-background draw-filter">
                    <?php smk_get_template_part('template-parts/componentsSVG/componente-circleDraw.php'); ?>
                </div>
            </a>
            <?php foreach($terms as $key => $term){ ?>
            <a  href="#" data-filtro="<?php echo $term->term_id; ?>" class="item text-menu">
                <span><?php echo $term->name; ?></span>
                <div class="contenedor-background draw-filter">
                    <?php smk_get_template_part('template-parts/componentsSVG/componente-circleDraw.php'); ?>
                </div>
            </a>
            <?php } ?>
            <?php } ?>
        </div>
        <div class="contenedor-proyectos-grid">
            <?php 
                smk_get_template_part('template-parts/components/loader.php');
            ?>
        </div>
    </div>
</section>