Title: Using a field as a variable
Last modified: August 10, 2019

---

# Using a field as a variable

 *  [ewolf90](https://wordpress.org/support/users/ewolf90/)
 * (@ewolf90)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/using-a-field-as-a-variable/)
 * Hey, so I absolutely love the plugin! It does everything I need, but there’s 
   an issue when I’m calling one of the fields. The way I have my WP configured 
   is that `field user` is the user’s ID, but I want it to display the user’s name.
   I’m attempting to store `field user` as a variable and then pass it through the
   link, but I’m not having much success. I can’t use `field author` because this
   is a custom post and the author isn’t actually the field I want to display.
 * Any help would be greatly appreciated, I’ve included my attempt below:
 *     ```
       [loop type=user_award count=10 custom=true]
          [set awarded_user_id][field user][/set]
          <a href="/user/[field user]">[pass vars][users include={awarded_user_id}][user name][/users][/pass]</a> received the [link][field title][/link] award on [field date].
       [/loop]
       ```
   
    -  This topic was modified 6 years, 10 months ago by [ewolf90](https://wordpress.org/support/users/ewolf90/).
    -  This topic was modified 6 years, 10 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).

The topic ‘Using a field as a variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ewolf90](https://wordpress.org/support/users/ewolf90/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/using-a-field-as-a-variable/)
 * Status: not resolved