Title: How do you echo a field&#039;s value?
Last modified: August 20, 2016

---

# How do you echo a field's value?

 *  Resolved [monitor](https://wordpress.org/support/users/oomskaap/)
 * (@oomskaap)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-echo-a-fields-value/)
 * I want to echo a field’s value on my home page, so the user can view it, but 
   how do i retrieve the data to show it in the template file.
 * [http://wordpress.org/extend/plugins/user-registration-aide/](http://wordpress.org/extend/plugins/user-registration-aide/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [bnovotny](https://wordpress.org/support/users/bnovotny/)
 * (@bnovotny)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-echo-a-fields-value/#post-3149168)
 * There are several ways, you can register a shortcode in the main user-registration-
   aide.php and add a function that would display the field and then add the shortcode
   to the template, something like:
 * function addmyshortcode (){
    $current_user = wp_get_current_user(); $username
   = $current_user->user_login; $first_name = $current_user->first_name; $last_name
   = $current_user->last_name; $display_name = $current_user->display_name; echo‘
   hello ‘ . $first_name . ‘ ‘ . $last_name;
 * }
 * add_shortcode( ‘myshortcode’, ‘addmyshortcode’ );
 * Something along those lines to extract the user data you want to display, then
   add the [myshortcode] to the template, or you could try to add the code itself
   right to the template, however I am not quite sure if that wil work or not, and
   it is not the best idea. I am working on an update which will be released soon
   and may be able to add a feature like that in it.

Viewing 1 replies (of 1 total)

The topic ‘How do you echo a field's value?’ is closed to new replies.

 * ![](https://ps.w.org/user-registration-aide/assets/icon.svg?rev=1256714)
 * [User Registration Aide](https://wordpress.org/plugins/user-registration-aide/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-registration-aide/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-registration-aide/)
 * [Active Topics](https://wordpress.org/support/plugin/user-registration-aide/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-registration-aide/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-registration-aide/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bnovotny](https://wordpress.org/support/users/bnovotny/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-echo-a-fields-value/#post-3149168)
 * Status: resolved