title: how to assign page template dynamically in wordpress
body: <p>I have a WordPress page created dynamically </p>
  
  <pre><code>$my_post = array(
          'post_title' =&gt; 'page-for-download',
          'post_content' =&gt; '',
          'post_status' =&gt; 'publish',
          'post_author' =&gt; 1,
          'post_type' =&gt; 'page'
  
      );
  </code></pre>
  
  <p>now my question is how to assign page template to this page dynamically</p>