<?php get_header(); ?>

<div class="container archive">
    <div class="row">
        <div class="col-12 col-lg-9 archive-list">
            <?php if ( have_posts() ) :
                while ( have_posts() ) : the_post();?>
                    <div class="archive-box">
                        <a href="<?php echo get_the_permalink();?>"><?php the_post_thumbnail('archive-post-img');?></a>
                        <div class="d-block">
                            <a href="<?php echo get_the_permalink();?>"><p><?php echo get_the_title();?></p></a>
                            <div><?php echo the_excerpt();?></div>
                            <div class="archive-box-bottom">
                                <div><i class="fas fa-user-edit i-custom"></i>نویسنده : <?php the_author();?></div>
                                <div><i class="fas fa-tags"></i>دسته بندی : <?php echo the_category();?></div>
                            </div>
                        </div>
                    </div>
                <?php endwhile;
            endif;?>

        </div>


        <?php
        get_sidebar();

        get_footer(); ?>
