I have a set of custom fields created on WordPress. When there is content for a field, I need a certain image displayed. When the field is blank, I need it hidden.
If there was no condition involved, this would be the HTML:
<a href="http://This is where my custom field URL goes"><img src="http://imagesource"></a>
So basically, the PHP condition is:
IF there is data entered in the custom field
THEN display a hyperlinked icon (standard .png file) with the target to the custom field
ELSE do not display anything
I think this is a fairly easy problem but I'm pretty novice at PHP. Any ideas?
Thanks for your help!