Title: Hyperlinks in metadata
Last modified: August 19, 2016

---

# Hyperlinks in metadata

 *  [bunchofapes](https://wordpress.org/support/users/bunchofapes/)
 * (@bunchofapes)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-in-metadata/)
 * Hello
 * I was helped earlier my MichaelH, thanks to him!
 * Right now im using the code below to display my metadata:
 *     ```
       <?php
       $website= get_post_meta($post->ID, 'website_value', true);
       if ($website){
       echo 'Website: '.$website;
       }
       ?>
       ```
   
 * My question is how do I make the website when it displays the link a hyperlink…?
 * So basically in the WP admin you can put in ‘www.mysite.com’ and [http://www.mysite.com](http://www.mysite.com)
   will appear as a hyperlink in the metadata…
 * Dave

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-in-metadata/#post-1392439)
 *     ```
       <?php
       $website= get_post_meta($post->ID, 'website_value', true);
       if ($website){
       echo 'Website: <a href="http://'.$website.'">'.$website.'</a>';
       }
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Hyperlinks in metadata’ is closed to new replies.

## Tags

 * [hyperlink](https://wordpress.org/support/topic-tag/hyperlink/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/hyperlinks-in-metadata/#post-1392439)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
