
<?php get_header(); ?>
<!-- ==================start content body section=============== -->
<section id="contentbody">
  <div class="row">


    <!-- start left middlebar content -->
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
      <div class="row">
        <div class="">

            <h1 class="text-right">گزشتہ میگزین </h1>







            <div class="listing">

                <div class="row">
                  <?php
                  $args = array (
                  	'post_type'              => array( 'magazine' ),
                  	'post_status'            => array( 'publish' ),
                  	'order'                  => 'DESC',
                  	'orderby'                => 'date',
                    'posts_per_page'         => 30,
                    'offset'                 => 6,

                  );

                  // The Query
                  $query = new WP_Query( $args );

                  // The Loop
                  if ( $query->have_posts() ) {
                  	while ( $query->have_posts() ) {
                  		$query->the_post();
                  		// do something


                        ?>
                <div class="col-lg-2 col-sm-2">

                    <p class="text-center"><?php the_date('d-m-Y', '<h4>', '</h4>'); ?></p>
                    <a href="<?php the_permalink(); ?>" class="thumbnail">
                      <?php if(has_post_thumbnail()): ?>
                        <?php the_post_thumbnail(); ?>
                      <?php endif; ?>
                      <!-- <img src="img/newspaper1.jpg" alt=""/> -->
                    </a>

                </div><!--col lg sm 2-->
                <?php

                }
                } else {
                // no posts found
                }
                wp_reset_postdata();

                ?>



                </div>
            </div><!--listing-->

        </div>
      </div>
    </div>
    <!-- End left middlebar content -->

  </div>
</section>
<!-- ==================End content body section=============== -->
<?php get_footer(); ?>
