Title: Get URL from Custom Fields Value?
Last modified: August 21, 2016

---

# Get URL from Custom Fields Value?

 *  [j4ze](https://wordpress.org/support/users/j4ze/)
 * (@j4ze)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/get-url-from-custom-fields-value/)
 * I have a plugin that generates a custom field for every post, with the value 
   of a certain url. Know i want to fetch this url and use it as a link elsewhere.
   I’ve been searching on the forum for the answer, but only came up with part of
   the solution.
 * The name of the custom field is: rssmi_source_link
    The value is a url in this
   form: [http://www.something.com](http://www.something.com)
 * This is the code i figured out so far, but it only direct me to my frontpage 
   when i apply it ?
 * `<a href="<?php $field_name="rssmi_source_link"; $field_value = get_post_meta(
   $post->ID, $field_name, true) ?>"`
 * Hope you guys can help me

The topic ‘Get URL from Custom Fields Value?’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [j4ze](https://wordpress.org/support/users/j4ze/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/get-url-from-custom-fields-value/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
