title: Change youtube shortened url value in iframe
body: <p>I am using advanced custom filed wordpress plugin to create a meta tag called youtube URL...</p>
  
  <p>When some one put the video url in shorter format like this <a href="https://youtu.be/H-30B0cqh88" rel="nofollow">https://youtu.be/H-30B0cqh88</a></p>
  
  <p>Then the iframe I put to show the video doesn't work cause iframe doesn't work with shorter version of url </p>
  
  <p>rather it needs real url as a source.. My iframe code is as below</p>
  
  "> 
  
  <p>How can I achive this.. Let me show you how I want to achieve this..</p>
  
  <p>I am not that expert on php so please give me the full working code..</p>
  
  <pre><code>&lt;?php
  the_field("listing_video_1") == $got_url_from_user_input
  
  if $got_url_from_user_input == https://youtu.be/H-30B0cqh88 in this format
  
  $actual_URL= replace above url to https://youtube.com/embed/H-30B0cqh88
  
  
  ?&gt;
  </code></pre>
  
  <p>How can I achieve this please.</p>
  
  <p>Thanks in advance</p>