title: Using Advanced Custom Fields and Contact Form 7 to display a form
body: <p>I want my users to be able to put a <a href="http://contactform7.com/" rel="nofollow">Contact Form 7</a> shortcode into a custom field in the Wordpress editor. I've created the custom field using <a href="http://www.advancedcustomfields.com/" rel="nofollow">ACF</a> and I can pull the value onto the page, but when I try to include it in the shortcode, it comes back with a 404. </p>
  
  <p>This code:</p>
  
  <pre><code>&lt;?php echo do_shortcode(get_field('contact_form_shortcode')); ?&gt;
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code>[contact-form-7 404 "Not Found"]
  </code></pre>
  
  <p>If I create a variable out of the value like this: </p>
  
  <pre><code>&lt;?php
   $formCode = get_field('contact_form_shortcode');
   echo $formCode;
  ?&gt; 
  </code></pre>
  
  <p>The echo returns:</p>
  
  <pre><code>[contact-form-7 id="473" title="Learn More Form"]
  </code></pre>
  
  <p>But I get the same 404 after putting that value into the echo do_shortcode function list this:</p>
  
  <pre><code>&lt;?php echo do_shortcode($formCode); ?&gt;
  </code></pre>
  
  <p>What am I missing?</p>