adding url (or <a href code) in an echo statement
-
I need some coding help here. I want to capture a custom field and using an “if not null statement echo output in a link form”. Here’s what I thought would work but does not:
<?php if ( $wpcm_number_facebook != '' ) { echo '<li><span class="number">'<a href=\"' . $wpcm_number_facebook. '\" /> (facebook) </a>' </li>'; } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘adding url (or <a href code) in an echo statement’ is closed to new replies.