title: Wordpress does not print content right
body: <p>My problem is that for some reason pages title and content prints upside down. And it prints searchbar twice. Can you please take look at coede bwlow </p>
  
  <pre><code>&lt;?php get_header(); ?&gt;
  
  &lt;div class="row"&gt;
  
      &lt;div class="col-xs-12 col-sm-8"&gt;
  
          &lt;div class="row text-center no-margin"&gt;
  
          &lt;?php 
          $currentPage = (get_query_var('paged')) ? get_query_var('paged') : 1;
          $args = array('posts_per_page' =&gt; 3,'post_type'=&gt;'post', 'paged' =&gt; $currentPage);
          new WP_Query($args);
          if( have_posts() ): $i = 0;
  
              while( have_posts() ): the_post(); ?&gt;
  
                  &lt;?php 
                      if($i==0): $column = 12; $class = '';
                      elseif($i &gt; 0 &amp;&amp; $i &lt;= 2): $column = 6; $class = ' second-row-padding';
                      elseif($i &gt; 2): $column = 4; $class = ' third-row-padding';
                      endif;
  
                  ?&gt;
                      &lt;?php the_content(); ?&gt;
  
                      &lt;div class="col-xs-&lt;?php echo $column; echo $class; ?&gt; blog-item"&gt;
                          &lt;?php if( has_post_thumbnail() ):
                              $urlImg = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
                          endif; ?&gt;
                          &lt;div class="blog-element" style="background-image: url(&lt;?php echo $urlImg; ?&gt;);"&gt;
  
                              &lt;!--&lt;?php the_title( sprintf('&lt;h1 class="entry-title"&gt;&lt;a href="%s"&gt;', esc_url( get_permalink() ) ),'&lt;/a&gt;&lt;/h1&gt;' ); ?&gt; --&gt;
                               &lt;h1 class="entry-title"&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
  
                              &lt;small&gt;&lt;?php the_category(' '); ?&gt;&lt;/small&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
              &lt;?php $i++; endwhile; ?&gt;
  
              &lt;div class="col-xs-6 text-left"&gt;
                  &lt;?php next_posts_link('« Older Posts'); ?&gt;
              &lt;/div&gt;
              &lt;div class="col-xs-6 text-right"&gt;
                  &lt;?php previous_posts_link('Newer Posts »'); ?&gt;
              &lt;/div&gt;
  
          &lt;?php endif;
                  wp_reset_query();
          ?&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;div class="col-xs-12 col-sm-4"&gt;
          &lt;?php get_sidebar(); ?&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;?php get_footer(); ?&gt;
  </code></pre>