<?php
/**
 * The sidebar containing the main widget area.
 *
 * @package storefront
 */ ?>

<div class="postaside-wrapper">
						
						
							<div class="postaside-box">
								<div class="postaside-box__title">
									<h3>Latest News</h3>
								</div>
								<div class="postaside-box__content">
									<div class="boxrecent">
										 <?php
          
            $qargs = array(
                'post_status'       => 'publish',
                'post_type'         => 'news',
           
                'posts_per_page'    => '10'
            );
            $postCount = 0;
            $recentPosts = new WP_Query( $qargs );
         
            if ( $recentPosts->have_posts() ) : ?>

                <?php while( $recentPosts->have_posts() ) : $recentPosts->the_post();
                $meta = get_post_meta( get_the_ID() ); ?>
										<div class="boxrecent__item">
											<h6 class="boxrecent__title"><a href="<?php echo get_permalink( ); ?>"><?php echo the_title();?></a></h6>
											<div class="boxrecent__data">	<?php echo date_i18n('d M Y', get_the_time('U')); ?></div>
										</div>
										
											<?php endwhile;  endif; 
            wp_reset_postdata();  ?>
										
									</div>
								</div>
							</div>
					
						</div>


