Title: https link in custom fields using front end editor
Last modified: August 20, 2016

---

# https link in custom fields using front end editor

 *  [iffifan](https://wordpress.org/support/users/iffifan/)
 * (@iffifan)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/https-link-in-custom-fields-using-front-end-editor/)
 * Hi,
 * I’m new to wordpress.
    I am using custom fields in front end editor to make posts.
   Whenever i enter a link with https protocol it automatically adds http protocol
   before https and “[https://www.facebook.com&#8221](https://www.facebook.com&#8221);
   BECOMES “[http://https://www.facebook.com&#8221](http://https://www.facebook.com&#8221);
   in post.
 * Custom field code in front end editor:
 *     ```
       <input type="text" name="website" id="website" class="textfield" value="<?php echo esc_attr(stripslashes($website)); ?>" size="25"  />
       ```
   
 * $website is custom field
 * code for retrieving custom field value in post:
 * `<a href="<?php echo get_post_meta($post->ID,'website',true);?>" target="_blank"
   >Some Text</a>`

The topic ‘https link in custom fields using front end editor’ is closed to new 
replies.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [iffifan](https://wordpress.org/support/users/iffifan/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/https-link-in-custom-fields-using-front-end-editor/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
