title: How to run php code in smarty template file?
body: <p>I want to load wordpress in a smarty template. I used the code below to load wordpress in a php file and it worked. But it is not working a smarty template.</p>
  
  <p>In php file:</p>
  
  <pre><code>&lt;?php
  include $_SERVER['DOCUMENT_ROOT'].'/wordpress/wp-load.php';
  get_header();
  ?&gt;
  </code></pre>
  
  <p>In smarty template file:</p>
  
  <pre><code>{php}
  include $_SERVER['DOCUMENT_ROOT'].'/wordpress/wp-load.php';
  get_header();
  {/php}
  </code></pre>