title: Wordpress functions not working in custom theme
body: <p>So I'm super new to Wordpress. I set up a Wordpress local server on MAMP yesterday and I'm trying to build my own theme currently. Trouble is, whenever I try to do <code>the loop</code>, I'm not getting any content. my code works if I just use php, but the problem is custom Wordpress functions aren't usable (i.e. <code>have_posts()</code>)</p>
  
  <p>A couple other posts have suggested requiring <code>wp-blog-header</code>, but that hasn't worked either. Here's my code:</p>
  
  <pre><code>&lt;?php
  
  define('WP_USE_THEMES', false);
  require('../../../wp-blog-header.php');
  
  if(have_posts()) :
      echo 'testing'
  
  else : 
      echo 'testing'
  endif;
  
  
  ?&gt;
  </code></pre>
  
  <p>Nothing currently displays on my screen. </p>
  
  <p><code>wp-blog-header.php</code> is located here: <code>wordpress -&gt; wp-blog-header.php</code></p>
  
  <p>My custom theme is located here: <code>wordpress -&gt; wp-content -&gt; themes -&gt; firstTheme -&gt; index.php</code></p>
  
  <p>All tips are appreciated.</p>