hocam kodlama hatası alıyorum, uygun şekilde yerleştirmeme yardımcı olur musunuz?

 <section class="sec">

 <article class="secos">
 
 <div class="ResimGalerisi">
<?php $baltek = new WP_Query("showposts=18"); while($salim->have_posts()) : $baltek ->the_post();?>


			
				<div class="HerbirResim">
           
							

<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
					<div class="ResimBaslik">					
					<p><?php the_title(); ?></p>
					</div>
						<?php
						if (has_post_thumbnail()) {
						the_post_thumbnail();
						}
						elseif (get_post_meta($post->ID, "resim", true) != '') { ?>
						  <img src="<?php echo get_post_meta($post->ID, "resim", true); ?>" alt="<?php the_title(); ?>"  width="190" height="140" />
						<?php }
						else { ?>
						<img src="<?php echo bloginfo('template_url'); ?>/images/resim-yok.gif"  alt="Resim Bulunmamaktadır" title="<?php the_title();?>"/>
						<?php } ?>
</a>	
				</div>	
</div>
					
<?php endwhile; ?> 			</article> 

 <!-- Konu Kismi Biter -->
<?php sayfalama(); ?>

	<?php else : ?>

 	<?php endif; ?>
 
		</section>