<div id="sidebar">
	<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
			<?php dynamic_sidebar( 'sidebar-1' ); ?>
	<?php endif; ?>

	
<div class="recent-post">
			
<?php
   $currentID = get_the_ID();
   $my_query = new WP_Query(
   array(
      'showposts' => '7',
      'post__not_in' => array(
         $currentID))
   );
   while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
			
				<?php if(has_post_thumbnail()) :?>
					<div class="featured"> 
						<a href="<?php the_permalink(); ?>">
							<?php the_post_thumbnail(); ?>
						</a>
					</div>
                 <?php endif;?>
			
      <h4><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h4>
	
			<div class="postmetadata">
					<?php the_category(' '); ?>
			</div>
			
   <?php endwhile; ?>

	
	</div>
	
</div>

		
