title: Advanced Custom Field - Displaying a youtube video on a Woocommerce template
body: <p>I have set up a custom field which you add the end of a youtube link in through a text widget in wordpress from there a function adds this to an iframe in the url.</p>
  
  <p>Below is the function adding this to the page:</p>
  
  <pre><code>                &lt;?php if (($videoUrl = get_field('video_name', $post-&gt;ID)) != '') {
              //Extract the url arguments (everything after the '?'
              if (($query = parse_url($videoUrl, PHP_URL_QUERY)) != '') {
                  //Convert the arguments into an array for each access
                  parse_str($query, $arguments);
                  if (array_key_exists('v', $arguments)) {
                      //Create the embed code using the id from the 'v' argument
                      $videoId = $arguments['v'];
                      ?&gt;
              &lt;div class="videoContainer"&gt;
                  &lt;iframe width="390" height="219" src="https://www.youtube.com/embed/&lt;?= $videoId ?&gt;?rel=0&amp;amp;showinfo=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
              &lt;/div&gt;
              &lt;?php 
          }
      }
  } ?&gt;
  </code></pre>
  
  <p>I have added this in with the content however nothing seems to be displaying still. Could someone please help me spot any bugs..</p>