                        <div class="relatedArticles">
                        	<h2 class="borderTitle"><span>
							<?php if(is_rtl()) { ?>
							<?php _e('مطالب مرتبط','lioit'); ?>
                            <?php } else {?>
                            <?php _e('Related Posts','lioit'); ?>
                            <?php }?>
                    		</span></h2>
                            <div class="relatedContent">
                            	<ul>
                                	<?php
									global $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'=> 4,
									'ignore_sticky_posts'=>1
									);
							
									query_posts($args);
									?>
               						<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                                	<li>
                                    	<?php $img = catch_that_image($post->ID); ?>
                                    	<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
                                        <img src="<?php echo Lioit_URI; ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;w=135&amp;h=110&amp;zc=1" alt="<?php the_title(); ?>" />
                                        </a>
                                        <a href="<?php the_permalink() ?>"><h2><?php the_title() ?></h2></a>
                                    </li>
                                    <?php endwhile; ?>
									<?php  else:  ?>
                                    <h5><?php echo __('There is no related posts.', 'theme'); ?></h5>
                                    <?php  endif; ?>
                                    <?php wp_reset_query(); ?>
                                      <?php endif;?>
                            		
                                </ul>
                            </div><!--End Related Content-->
                        </div><!--End Related-->