Using a string from a custom field within a link
I want to show the image only if there is info in the field. And the link around the image uses the info in the field. The mailto: field is coming up blank. So I'm guessing/hoping I'm doing something wrong with the way I'm printing/calling it. I would greatly appreciate any help.
?php $email = types_render_field ("email");
if ( $email ) { ?
a href="mailto:?php $email ?"img src="?php bloginfo( 'template_url' ); ?/images/icon-email.gif" width="24" height="24" //a
?php } ?
In case it's relevant, I'm using the Types plugin to create my custom fields.
Topic plugin-types php custom-field Wordpress
Category Web