Make links from Custom Fields
-
Hi there,
Im trying to generate links using custom fields, using the value of the field…it would be something like this:
Form in the admin area:
Name: Jhon Smith
Web: http://www.johnsmith.com
e-mail: john@jhonsmith.comThe code you get would be:
<ul class='post-meta'> <li><span class='post-meta-key'>Name:</span> John Smith</li> <li><span class='post-meta-key'>Web</span>www.johnsmith.com></li> <li><span class='post-meta-key'>e-mail/span>john@johnsmith.com</li>
This is what I want:
<ul class='post-meta'> <li><span class='post-meta-key'>Name:</span> John Smith</li> <li><span class='post-meta-key'>Web</span> <a href="http://www.jhonsmith.com">www.johnsmith.com></a></li> <li><span class='post-meta-key'>e-mail/span> <a href="mailto:john@johnsmith.com">john@johnsmith.com</a></li>
Thanks a lot for your help, maybe it’s explained in some other topic, in this case, please let me know…
Dzoe
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Make links from Custom Fields’ is closed to new replies.