title: How do you Pass a Variable to a Template Part in Wordpress?
body: <p>I'm trying to call a template part but I want to change a small detail every time that I call it.</p>
  
  <p>Right now I'm just using:</p>
  
  <pre><code>&lt;?php get_template_part( 'ad-banner' ); ?&gt;
  </code></pre>
  
  <p>I figure there's got to be something like</p>
  
  <pre><code>&lt;?php get_template_part( 'ad-banner', $variable='variable value' ); ?&gt;
  </code></pre>
  
  <p>Does anyone have suggestions?</p>