title: The WordPress function the_title() is showing blank
body: <p>I am using this code to display a post on my homepage. <code>&lt;?php the_title(); ?&gt;</code> is returning blank.</p>
  
  <p>Source: <a href="http://idolizeonline.com" rel="nofollow noreferrer">idolizeonline.com</a> (<a href="https://en.wiktionary.org/wiki/NSFW#Adjective" rel="nofollow noreferrer">NSFW</a> link)</p>
  
  <p>-- If you hover over the thumbnails, the title and excerpt of the post should appear over the image (excerpt is title is not).</p>
  
  <pre><code>&lt;?php if(!of_get_option('ttrust_open_project_single')) : ?&gt;
  
      &lt;div class="project small ajx &lt;?php echo $p; ?&gt;" id="project-&lt;?php echo $post-&gt;post_name;?&gt;"&gt;
          &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" &gt;&lt;/a&gt;
  
          &lt;a href="#&lt;?php echo $post-&gt;post_name; ?&gt;" &gt;&lt;?php the_post_thumbnail($project_thumb_size, array('class' =&gt; 'thumb', 'alt' =&gt; ''.get_the_title().'', 'title' =&gt; ''.get_the_title().'')); ?&gt;&lt;/a&gt;
          &lt;span class="title"&gt;
              &lt;div&gt;
                  &lt;span id="theTitle"&gt;&lt;?php the_title(); ?&gt;&lt;/span&gt;
                  &lt;span id="theExcerpt"&gt;&lt;?php the_excerpt(); ?&gt;&lt;/span&gt;
              &lt;/div&gt;
          &lt;/span&gt;
      &lt;/div&gt;
  
  &lt;?php else: ?&gt;
  
      &lt;div class="project small &lt;?php echo $p; ?&gt;" id="project-&lt;?php echo $post-&gt;post_name;?&gt;"&gt;
          &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" &gt;&lt;/a&gt;
  
          &lt;a href="&lt;?php the_permalink() ?&gt;" &gt;&lt;?php the_post_thumbnail($project_thumb_size, array('class' =&gt; 'thumb', 'alt' =&gt; ''.get_the_title().'', 'title' =&gt; ''.get_the_title().'')); ?&gt;&lt;/a&gt;
          &lt;span class="title"&gt;
              &lt;div&gt;
                  &lt;span id="theTitle"&gt;&lt;?php the_title(); ?&gt;&lt;/span&gt;
                  &lt;span id="theExcerpt"&gt;&lt;?php the_excerpt() ?&gt;&lt;/span&gt;
              &lt;/div&gt;
          &lt;/span&gt;
      &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>