<?php
/**
 * The template for displaying archive pages for Custom Post Type TEAM
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage WP5_Default
 * @since 1.0.0
 */

get_header();
?>
    <div id="team-content">
        <div class="container">
            <?php
                $categories = get_terms(array(
                    'taxonomy' => 'team_office',
                    'hide_empty' => false
                ));
            ?>

            <div class="team-offices">
                <?php foreach ($categories as $category): ?>
                    <button class="tab-btn" data-cat="<?php echo esc_attr($category->term_id); ?>">
                        <?php echo esc_html($category->name); ?>
                    </button>
                <?php endforeach; ?>
                <button class="tab-btn" data-cat="0">
                    See all
                </button>
            </div>
            <div id="team-list">
                <p>Select a category to view items.</p>
            </div>
            <!-- <div class="team-inner"> -->

                
                <?php //if ( have_posts() ) : ?>

                    <?php
                    // Start the Loop.
                //     while ( have_posts() ) :
                //         the_post();

                //         /*
                //         * Include the Post-Format-specific template for the content.
                //         * If you want to override this in a child theme, then include a file
                //         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
                //         */
                //         get_template_part( 'template-parts/team/content', 'excerpt' );

                //         // End the loop.
                //     endwhile;

                //     // Previous/next page navigation.
                //     wp5default_the_posts_navigation();

                //     // If no content, include the "No posts found" template.
                // else :
                //     get_template_part( 'template-parts/team/content', 'none' );

                // endif;
                ?>
            <!-- </div> -->
        </div>
    </div>
<?php
get_footer();
