Make Custom Filed Data into a clickable link.
-
i have a custom field with 2 names ( Mood and style ) and their values are links. i managed to make 1 link clickable but for some reason the name doesn’t show. Only the value as a clickable link( which is what i wanted but with the name of the value in front ). Also the second name does not show, along with its value…This is the code im using to insert it into a hook and then edit it with css. Im hoping some one can help me out here. Thank you.
example of what i wanted
(Name) (value)
Mood : https://yahoo.com
Style : https://msn.commy code makes the value( yahoo.com ) in “Mood” clickable but the name
( Mood) doesnt show. “Style” and its value just dont show up at all.code used
<?php if(is_single() ) { ?>
<h6 class=”meta-fields”><?php $text = get_post_meta( get_the_ID(), ‘Mood’,’Style’, TRUE );
echo make_clickable( $text ); ?></h6>
<?php } ?>hopefully some one can help me out here. Thank you
- The topic ‘Make Custom Filed Data into a clickable link.’ is closed to new replies.