<?php
            $args = array(
			    'post_type' => 'ekskul', 
			    'posts_per_page' => 6, 
				'post__not_in' => array($post->ID), 
				'orderby' => 'rand',
			);
		    query_posts($args);?>
					
			<div class="clear">
				<h3 class="press_heads"><?php echo __( 'Ekskul Lainnya', 'prestasi' ); ?></h3>
			</div>
				
			<?php 
			    if (have_posts()):
	                while (have_posts()): the_post(); 			
				    ?>
				    
		    		<div class="clear loop_bar">
						<?php if (has_post_thumbnail()) { ?>
			    		    <div class="loop_thumb">
						        <a href="<?php the_permalink() ?>"><?php the_post_thumbnail('gals', array(
	        						'alt' => trim(strip_tags($post->post_title)),
			    	        		'title' => trim(strip_tags($post->post_title)),
						    	)); ?></a>
			    			</div>
			    		<?php } ?>
						<div class="loop_meta">
						    
			    			<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
						
			    		</div>
					</div>
	                 
	                <?php 
					endwhile; 
				endif;
				
			wp_reset_query(); ?>