Title: Hyperlinking custom field
Last modified: August 19, 2016

---

# Hyperlinking custom field

 *  [surfershort](https://wordpress.org/support/users/surfershort/)
 * (@surfershort)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hyperlinking-custom-field/)
 * Hi,
 * Ive specified a custom field in my post body here [http://festivalnet.co.uk/teas-and-tarts/](http://festivalnet.co.uk/teas-and-tarts/)
   called ‘Website’ the user enters their URL via a contact form on the upload listings
   page here [http://festivalnet.co.uk/upload-a-listing/](http://festivalnet.co.uk/upload-a-listing/)
 * this is how i call it into the body
 *     ```
       <span class="about-us">Website</span> <br />
                               <?php echo get_post_meta($post->ID, 'website',true) ?><br /
       ```
   
 * Is there anyway i can make the URL a hyperlink when its displayed in the post
   body?
 * Many Thanks
    Al

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hyperlinking-custom-field/#post-1860202)
 *     ```
       <span class="about-us">Website</span> <br />
                               <a href="<?php echo get_post_meta($post->ID, 'website',true) ?>"> <?php echo get_post_meta($post->ID, 'website',true) ?> </a> <br />
       ```
   
 *  Thread Starter [surfershort](https://wordpress.org/support/users/surfershort/)
 * (@surfershort)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hyperlinking-custom-field/#post-1860213)
 * You rock Rev. Voodoo worked perfectly
 * Cheers
 * (EDIT) Sorry it nearly worked your code displays the link
 * [http://festivalnet.co.uk/camel-camp/www.festivalglamping.com](http://festivalnet.co.uk/camel-camp/www.festivalglamping.com)
 * as can be seen on this page [http://festivalnet.co.uk/camel-camp/](http://festivalnet.co.uk/camel-camp/)
 * i need to delete the post URL i cant quite work it out
 * cheers

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hyperlinking custom field’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [surfershort](https://wordpress.org/support/users/surfershort/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/hyperlinking-custom-field/#post-1860213)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
