title: Syntax for using echo inside an echo (wordpress slider)
body: <p>this is the piece of code I'm not sure how to deal with:</p>
  
  <pre><code>&lt;?php echo get_post_meta($post-&gt;ID, 'smartslider2', true); ?&gt;
  &lt;?php echo do_shortcode('[smartslider2 slider="InsertHere"]'); ?&gt;
  </code></pre>
  
  <p>I simply want to insert the first echo instead of InsertHere. The first echo should output the content of a custom field. The second should recall the slider with the specific number inserted in the custom field. When trying different possibilities I only get errors.</p>
  
  <p>Can anybody help? </p>
  
  <p>Thank you :)</p>