title: wordpress isnt loading in the_content() or footer.php
body: <p>I am creating a custom theme, but have run into some problems. For your information my files are as seen below:</p>
  
  <pre><code>themes/
      aq-aquatics/
         css/
         img/
         js/
         footer.php
         functions.php
         header.php
         index.php
         page-homepage.php
         page-wide.php
         style.css
      index.php
  </code></pre>
  
  <p>This is my header.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;!-- Latest compiled and minified CSS --&gt;
  &lt;link rel="stylesheet" href="&lt;?= get_template_directory_uri(); ?&gt;/css/bootstrap.min.css"&gt;
  &lt;link href='https://fonts.googleapis.com/css?family=Asap:400,700' rel='stylesheet' type='text/css'&gt;
  &lt;link href="http://fonts.googleapis.com/css?family=Arvo:400,700,400italic,700italic" rel="stylesheet" type="text/css"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1" /&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"  /&gt;
  &lt;meta name="author" content="Matthew Smart"&gt;
  &lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
  &lt;!--[if lt IE 9]&gt;
  &lt;script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;title&gt;&lt;?php wp_title(); ?&gt;&lt;/title&gt;
  
  &lt;?php wp_head(); ?&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="wrap"&gt;
  &lt;header&gt;
      &lt;div class="header-top text-right"&gt;
          &lt;div class="container"&gt;
              &lt;span style="margin-right:40px;"&gt;Tel: 01922 418050&lt;/span&gt;&lt;span&gt;Email: sales@hollybush-garden.com&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="container"&gt;
          &lt;div class="header-content" style="min-height:86px;"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-sm-1" style="position:absolute;top:11px;z-index:1000;"&gt;
                      &lt;img src="&lt;?= get_template_directory_uri(); ?&gt;/img/logo.png" width="108" height="100" alt="a&amp;d logo"/&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-offset-1 col-sm-10 text-right" style="margin-left:132px;"&gt;
                      &lt;nav class="navbar"&gt;
                          &lt;div class="container"&gt;
                              &lt;div&gt;
                                  &lt;ul class="nav navbar-nav" style="width:inherit; border-bottom:none !important;margin-top:31px;"&gt;
                                      &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
                                      &lt;li class="dropdown"&gt;
                                          &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#"&gt;At A &amp; D
                                              &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                                          &lt;ul class="dropdown-menu"&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Page 1-1&lt;/a&gt;&lt;/li&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Page 1-2&lt;/a&gt;&lt;/li&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Page 1-3&lt;/a&gt;&lt;/li&gt;
                                          &lt;/ul&gt;
                                      &lt;/li&gt;
                                      &lt;li class="dropdown"&gt;
                                          &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#"&gt;Aquatics
                                              &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                                          &lt;ul class="dropdown-menu"&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Tropical&lt;/a&gt;&lt;/li&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Pond&lt;/a&gt;&lt;/li&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Marine&lt;/a&gt;&lt;/li&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Cold water&lt;/a&gt;&lt;/li&gt;
                                              &lt;li&gt;&lt;a href="#"&gt;Aquatics Sundries&lt;/a&gt;&lt;/li&gt;
                                          &lt;/ul&gt;
                                      &lt;/li&gt;
                                      &lt;li&gt;&lt;a href="#"&gt;Valencia Wharf Coffee Shop&lt;/a&gt;&lt;/li&gt;
                                      &lt;li&gt;&lt;a href="#"&gt;Opening Times&lt;/a&gt;&lt;/li&gt;
                                      &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
                                  &lt;/ul&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/nav&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="purple-line" style="margin-bottom:25px;"&gt;&lt;/div&gt;
  &lt;/header&gt;
  </code></pre>
  
  <p>This is my page.wide.php</p>
  
  <pre><code>&lt;?php
  /*
  Template Name: Wide Page
  */
  get_header();
  
  ?&gt;
  
  
  &lt;?php
  if ( have_posts() ) {
      while ( have_posts() ) {
          //
          // Post Content here
          the_content();
          //
      } // end while
  } // end if
  ?&gt;
  
  
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  
  <p>And this is my footer.php</p>
  
  <pre><code>&lt;footer&gt;
  &lt;div class="container"&gt;
      &lt;div class="col-sm-6"&gt;
          A&amp;D AQUATIC &amp; GARDEN CENTRE | WEBSITE DESIGN BY &lt;span&gt;MATTHEW SMART&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class="col-sm-6 text-right"&gt;
          &lt;ul&gt;
              &lt;li&gt;TERMS AND CONDITIONS&lt;/li&gt;
              &lt;li&gt;PRIVACY POLICY&lt;/li&gt;
              &lt;li&gt;COOKES&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;/footer&gt;
  
  
  &lt;/div&gt;&lt;!-- End WRAP --&gt;
  &lt;?php wp_footer(); ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now the page i am trying to test is using the wide template. I have put some dummy text into the editor and clicked publish.</p>
  
  <p>Now when i try to visit the page the first thing i can see is part of the header. The browser then takes another 5 seconds and loads the navigation which is in my header.php file.</p>
  
  <p>It seems to just ignore everything from the page template and afterwards. So the_content() pulls nothing through and the footer doesn't get displayed.</p>
  
  <p>I have been comparing these files with other themes i have created and cannot seem to find a cause.</p>
  
  <p>Does anyone know why this may be happening?</p>
  
  <p>Thanks</p>