title: How to add php echo within echo shortcode in Wordpress
body: <p>I'm trying to use an image for my title using the jQuery Collapse-O-Matic plugin, however I am using the do_shortcode echo and am stumbling a bit on how to add an echo within an echo. I've tried a few options including the Heredoc method but I am not sure how to implement with my particular code.</p>
  
  <p>I've added my code below, can anyone point me in the right direction? All and any help is appreciated, thanks!</p>
  
  <pre><code>&lt;?php echo do_shortcode('[expand title="&lt;img src='&lt;?php echo get_template_directory_uri(); ?&gt;/img/schedule.png' /&gt;" trigpos="below"]this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..[/expand]'); ?&gt;
  </code></pre>