I have the following code which is pulling in a custom field named phone.
<?php echo get_post_meta( get_the_ID(), 'ecpt_phone', true ); ?>
I additionally however want to add a little icon to the left of it. So I realise I have to include the src link somewhere, have tried the below, but am having no joy. Sorry a bit new...
<?php
$value = get_post_meta( get_the_ID(), 'ecpt_phone', true );
if( $value == 'True' ) { echo '<img src="/wp-content/uploads/2013/02/image.png">'; echo get_post_meta( get_the_ID(), 'ecpt_phone', true ); ?>
Thanks so much in advance.