title: get WordPress variable from external php file does not work
body: <p>I have two variables in an external file</p>
  
  <p><em>function.php</em></p>
  
  <pre><code>$bottomID   =  get_post_meta($post-&gt;ID, "bottom", true);
  
  $xstring    =  "This is a string"; 
  </code></pre>
  
  <p>now if I echo them from my <em>index.php</em></p>
  
  <pre><code>echo $bottomID;
  echo $xstring;
  </code></pre>
  
  <p>I only get the value from <code>$xstring</code> but not from <code>$bottomID</code></p>
  
  <p>I know that <code>$bottomID</code> works since if I have it in the <code>index.php</code> file it echo out a value.</p>
  
  <p>Cant figure out whats the problem</p>
  
  <p>Any ideas?</p>