    <?php get_header(); ?>
        <div class="col-md-9" id="kt-transition">
            <div class="row" id="kt-main">
            <div id="kt-breadcrumb" class="text-center">
            <?php  photographer_breadcrumb(); ?>
            <hr/>
            </div>
            <?php $i = 1; ?>
             <div class="col-md-4">
            <?php 
              if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
                  <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                   <div class="kt-article">
                    <?php if(has_post_thumbnail()) { ?>
                    <div class="kt-article-img">    
                     
                        <h1><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php photographer_the_title_shorten(20); ?></a></h1>
                        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
                        <?php the_post_thumbnail('',array('class'=>'img-responsive')); ?>
                        </a> 
                    </div>
                    <?php } else { ?> 
                    <div class="kt-article-text">
                    <h1 class="kt-article-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
                    <?php photographer_the_title_shorten(50); ?></a></h1>
                    <p><?php echo photographer_get_excerpt(70,''); ?></p>
                    <a class="kt-read-more" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">Далее <i class="glyphicon glyphicon-circle-arrow-right"></i></a>
                    </div>
                        <?php } ?>
                    <div class="clearfix kt-top-buffer"></div>
                    <a class="kt-author" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
                    <?php echo get_avatar( get_the_author_meta( 'ID' ), 25 ); the_author_meta( 'display_name' ); ?>
                    </a>
                    <span class="kt-comment-count"><a href="<?php comments_link(); ?>"><i class="glyphicon glyphicon-comment"></i></a></span>
                    </div>      
                  </div>        
              <?php 
              // After 3 close the row div and open a new one
              if($i % 1 == 0) {echo '</div><div class="col-md-4">';}
              //End stuff
              $i++; endwhile; endif;
                ?>
            </div>  
            <div class="clearfix"></div> 
            
            <div id="kt-pagination">
            <?php
                if ( function_exists('photographer_pagination') ) :
                photographer_pagination();
                endif;
            ?>
            </div>
            </div><!--.row ends here-->
        </div>
    </div>
    </div>

    <?php get_footer(); ?>