I’m using the custom fields to select a video to play in a post and using the following code:
<iframe width="600" height="360" src="http://www.youtube.com/embed/” frameborder=”0″ allowfullscreen>
The problem I’m running into is that I would like the iframe to only show up if there is a variable. For example I have 3 video players if the user only puts in 2 videos the 3rd one wouldn’t show up. Right now it just shows up as a broken video since it has no vars.
I tried a few if statements and just cant seem to get it to work.