<?php
/**
* The template for displaying tag archive pages.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package GridFeel WordPress Theme
* @copyright Copyright (C) 2025 ThemesDNA
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
* @author ThemesDNA <themesdna@gmail.com>
*/

get_header(); ?>

<div class="gridfeel-main-wrapper gridfeel-clearfix" id="gridfeel-main-wrapper" itemscope="itemscope" itemtype="http://schema.org/Blog" role="main">
<div class="theiaStickySidebar">
<div class="gridfeel-main-wrapper-inside gridfeel-clearfix">

<?php gridfeel_before_main_content(); ?>

<div class="gridfeel-posts-wrapper" id="gridfeel-posts-wrapper">

<?php if ( !(gridfeel_get_option('hide_tags_title')) ) { ?>
<div class="gridfeel-page-header-outside">
<header class="gridfeel-page-header">
<div class="gridfeel-page-header-inside">
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php if ( !(gridfeel_get_option('hide_tags_description')) ) { ?><?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?><?php } ?>
</div>
</header>
</div>
<?php } ?>

<div class="gridfeel-posts-content">

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

    <div class="gridfeel-posts gridfeel-posts-grid">
    <?php while (have_posts()) : the_post(); ?>

        <?php get_template_part( 'template-parts/content-grid' ); ?>

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

    <?php gridfeel_posts_navigation(); ?>

<?php else : ?>

  <?php get_template_part( 'template-parts/content', 'none' ); ?>

<?php endif; ?>

</div>

</div><!--/#gridfeel-posts-wrapper -->

<?php gridfeel_after_main_content(); ?>

</div>
</div>
</div><!-- /#gridfeel-main-wrapper -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>