Jump to content

Archived

This topic is now archived and is closed to further replies.

calivw78

Wordpress + Magic Fields plugin - Wrapping a field within an href tag

Recommended Posts

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...

Share this post


Link to post
Share on other sites
<?php echo '<a href="">' . get('field-name') . '</a>'; ?>

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.