title: What is wrong with this Smarty php templating code?
body: <p>What is wrong with this Smarty php templating code? If I include either of these two loops individually in the file, they work. But if I have them both in the file like below only the first loop gets completed.</p>
  
  <pre><code>  {include file="vote_js.tpl"}
      {section name=i loop=$posts}
      {include file="posts_bitother.tpl"}
      {/section}
  
  
  
      {section name=j loop=$posts2}
      {include file="posts_bitposts.tpl"}
      {/section}
  </code></pre>
  
  <p>So for example</p>
  
  <pre><code>   {section name=j loop=$posts2}
      {include file="posts_bitposts.tpl"}
      {/section}
  </code></pre>
  
  <p>works fine on it's own.</p>
  
  <p>Why is this happening and what is the way around it?</p>