calivw78 Posted January 23, 2011 Share Posted January 23, 2011 I've been posting at the support forums for the Magic Fields plugin, but have not had much luck. The Magic Fields plugin for Wordpress let's users create custom fields that can be displayed in a page template. What I am trying to do, is wrap the contents of a field in an href tag, to make it clickable. Here is how the data is currently retrieved and displayed in the page template: <?php echo get('field-name'); ?> What I would like to do, is wrap the content of "field-name" in an href tag so it may be clickable. Anyone have any thoughts? Thanks in advance... Quote Link to comment Share on other sites More sharing options...
trq Posted January 23, 2011 Share Posted January 23, 2011 <?php echo '<a href="">' . get('field-name') . '</a>'; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.