            <h3 class="dnnc_related"><span><?php esc_html_e('Related Posts','visby');?></span></h3>
            <div class="dnnc_columns_wrap">
			<?php $backup = $post;
			$tags = wp_get_post_tags($post->ID);
			
			if ($tags) { $tag_ids = array();
			
				foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
				
				$args=array(
					'tag__in' => $tag_ids,
					'post__not_in' => array($post->ID),
					'showposts'=>3, // Number of related posts that will be shown.
					'ignore_sticky_posts'=>1
				);
				
				$my_query = new wp_query($args);
				
				if( $my_query->have_posts() ) {  while ($my_query->have_posts()) { $my_query->the_post();if(has_post_format('aside')||has_post_format('quote')){ } else { ?>
			
                <div <?php post_class('dnnc_column dnnc_column_4 dnnc_item_related'); ?>>               	
                
                    <?php if ( has_post_thumbnail()){?>
                            
                        <div class="imgwrap tranz">
                            
                            <a href="<?php the_permalink(); ?>">
                            
                                <?php the_post_thumbnail('visby_tabs',array('class' => 'dnnc_tranz'));  ?>
                                
                            </a>
                        
                            <?php visby_meta_cat();?>
                    
                        </div>
                        
                    <?php }  ?>    
        
                    <div class="item_inn tranz dnnc_border rad">
                    
                        <h4 class="small_title"><a class="link link--forsure" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                        
                        <p class="dnnc_teaser"><?php echo visby_excerpt( get_the_excerpt(), '80'); ?><span class="helip">...</span></p>
                         
                    </div><!-- end .item_inn -->
            
                </div>
            
				<?php }
                
                } echo '';
                
            }
            
        }
        
        $post = $backup;
        
        wp_reset_postdata();?>
    </div>
    <div class="clearfix"></div>