 <div class="singlePost">
                    <?php if(have_posts()) : while(have_posts()) : the_post('');?>
                   
                    	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                            <div class="hentryContent">
                                <div class="postContent">
                                    <details class="postTitle">
                                    	<?php $type_badge = get_post_meta($post->ID, 'lioit_post_type', true);?>
                                        <h2><a href="<?php the_permalink();?>"><div class="<?php echo $type_badge; ?> articleType"></div><?php the_title(); ?></a></h2>
                                    </details><!--End PostTitle-->
                                    <details class="postMetaContainer">
                                        <ul class="postMeta">
                                            <li class="postFormatIcon"><i class="icon-camera"></i></li>
                                            <li class="postDateMeta"><i class="icon-calendar"></i><?php the_time('F d, Y'); ?></li>
                                            <li class="postAuthor"><i class="icon-user"></i>By <?php the_author(); ?></li>
                                            <li class="postCategory"><i class="icon-folder-open"></i>in <?php the_category(', ') ?></li>
                                            <li class="postComments"><i class="icon-comment"></i><?php comments_popup_link(__('<span class="icon"></span> 0 Comments', 'lioit'), __('<span class="icon"></span> 1 Comment', 'lioit'), __('<span class="icon"></span> % Comments', 'lioit')); ?></li>
                                        </ul><!--End postMeta-->
                                    </details><!--End PostMetaContainer-->
                                    <div class="postImage leftPostThumb">
                                    	
                                        <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
                                        <?php the_post_thumbnail('main-block', array('title' => strip_tags(get_the_title()))); ?>
                                        </a>
                                    </div><!--End postImage-->
                                    <p><?php the_excerpt_max_charlength(''); ?> ...</p>
                                </div><!--End PostContent-->
                                <div class="postBtm">
                                    <div class="postTags">
                                        <span class="tagsTitle"><i class="icon-tags"></i> <?php _e('Tags' , 'lioit' ) ?></span>
                                        <?php the_tags('','',''); ?>
                                    </div><!--End PostTags-->
                                    <a href="<?php the_permalink();?>" class="postMore btn"><?php _e('Read More' , 'lioit' ) ?></a>
                                </div><!--End PostBtm-->
                            </div><!--End hentryConent-->
                        </article><!--End article-->
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <div class="mainPagination">
                            <div class="pagesNambers"><?php lio_pagination(); ?></div><!--En Nambers-->
                            <?php
                             if( get_next_posts_link() || get_previous_posts_link() ) { ?>
                                <div class="paginationLinks">
                                    <?php previous_posts_link('<i class="icon-angle-left"></i>'); ?>
                                    <?php next_posts_link('<i class="icon-angle-right"></i>'); ?>
                                </div>	
                            <?php } ?>
                        </div><!--End MainBagination-->
                         </div>