title: Echo PHP variable under a Wordpress custom Query
body: <p>I have a custom field as an option, and I want to put the value of this option in a custom loop. </p>
  
  <p>So here's what I have:</p>
  
  <pre><code>$CatTxt = the_field('section_1', 'option'); 
              echo $CatTxt;
  </code></pre>
  
  <p>This works, the problem is when I try to put on the loop. My attempts:</p>
  
  <p>Double quotes - doesn't work:</p>
  
  <pre><code>&lt;?php query_posts("category_name=$CatTxt"); ?&gt;
  </code></pre>
  
  <p>Separating with the dot - Doesn't' work:</p>
  
  <pre><code>&lt;?php query_posts('category_name='.$CatTxt); ?&gt;
  </code></pre>
  
  <p>Any idea on how to make this work? Thanks!</p>