<?php get_header(); ?>
<?php global $qaleb;?>
<div class="container">
<div class="wrapper">
<div class="ap-archive">
<div class="archive-main">
<div class="archive-head">
<div class="ttit">
<h3>
<?php the_author_posts_link(); ?>
</h3>
 <div class="arch-layout grid" data-layout="grid"></div>
<div class="arch-layout list" data-layout="list"></div>
</div>
</div>
<div class="archive-body">
<div class="items list">
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
<?php get_template_part('inc/loop/loop-2'); ?>	
   <?php endwhile;
				else:
				echo "<p>چیزی یافت نشد !</p>";
				 endif; ?>
 </div>
</div>
<?php if (function_exists("pagination")){ pagination($additional_loop->max_num_pages); } ?>
</div>
<div class="archive-sidebar sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('index-post') ) : ?><?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>