Wordpress Pages not showing any content
<p>I have installed WordPress 4.5.3 and have built my custom theme. Everything works pretty well except for the fact that some pages don't show any content at all. I have tried to search on how to fix this but I can't find any solution, because my own problem has pages that don't even enter 'the loop'. I have tried to echo things within the loop to make sure that it enters but to no avail. My theme is still offline so i could not provide a link to it. Please any idea why it is not entering the loop.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php get_header(); ?&gt;
&lt;style type="text/css"&gt;
  .submit input {
    height: 50px;
    width: 200px;
    background: #f88b0c;
  }
&lt;/style&gt;
&lt;div class="row"&gt;
  &lt;?php while ( have_posts() ) : the_post(); ?&gt;
  &lt;div class="col-md-12 "&gt;
    &lt;h2 class="title "&gt;
   &lt;center&gt;
    &lt;?the_title()?&gt;
    &lt;hr&gt;
   &lt;/center&gt;
  &lt;/h2&gt;
  &lt;/div&gt;
  &lt;div class="col-md-12"&gt;
    &lt;?php if(has_post_thumbnail())?&gt;
    &lt;?php the_post_thumbnail(); ?&gt;
  &lt;/div&gt;
  &lt;div class="col-md-12"&gt;
    &lt;p&gt;
      &lt;?php the_content(); ?&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;?php endwhile;?&gt;
&lt;/div&gt;

&lt;?php get_footer(); ?&gt;</code></pre>
</div>
</div>
</p>