title: WordPress get_template_part pass variable
body: <p>Is there a way of passing a variable to get_template_part() in wordpress:</p>
  
  <pre><code>&lt;?php get_template_part( 'element-templates/front', 'top' ); ?&gt;
  &lt;?php get_template_part( 'element-templates/front', 'main' ); ?&gt;
  </code></pre>
  
  <p>In the front-top.php and front-main.php (which the above is calling) I need to access numeric variables (a different one for each section). Is there a way of passing a variable to each of the calls above?</p>
  
  <p>Thank you</p>