title: WP Shortcodes not returning content
body: <p>I am trying to set up a shortcode inside a template file.</p>
  
  <p>I have the following setup:</p>
  
  <p>As content in a WP page:</p>
  
  <p><code>[test]shortcode![/test]</code> </p>
  
  <p>In functions.php:</p>
  
  <pre><code>function test( $atts, $content = null ) {
      return '&lt;h1&gt;'.$content.'&lt;/h1&gt;';
  }
  
  add_shortcode("test", "test"); 
  </code></pre>
  
  <p>In the template.php of the page above:</p>
  
  <pre><code>&lt;?php echo do_shortcode('[test]'); ?&gt;
  </code></pre>
  
  <p>Nothing gets returned though. If I call <code>the_post()</code> and <code>the_content()</code> inside template.php the shortcode does display properly as a h1 but that's not the functionality I'm going for, I need to be able to plug the <code>[test]</code> shortcode in specific places.</p>
  
  <p>Additionally, it seems that I can add hardcoded content in the function and it gets displayed, so most likely the $content variable is not returning any data ? What could be causing that ?</p>