IF custom field exists – display div
-
Hello,
I have a custom field that displays a youtube video. In the value of the field, I am just entering part of the url. I want it so that if the key “yt-vid” exists, then it will display or include (using php) a div that has the youtube video with an old-style TV as the background. I already know how to display the youtube video in front of the TV however for some reason I cannot figure out how to show to custom field if it exists. This is my first wordpress theme I am making and I am intermediate when it comes to php, HMTL, css, etc.Thanks,
Connor
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘IF custom field exists – display div’ is closed to new replies.