Title: User-description shortcode doesn&#039;t work
Last modified: August 31, 2016

---

# User-description shortcode doesn't work

 *  Resolved [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/)
 * Hi, to which user meta is [user-description] linked? It seems it doesn’t work
   if is set on ‘description’…
    How can I make it work? Thank you, M.
 * [https://wordpress.org/plugins/bnfw/](https://wordpress.org/plugins/bnfw/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374674)
 * Hi hightechware,
    Thanks for your message.
 * What notification are you trying to set it up on?
 * Thanks,
    Jack
 *  Thread Starter [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374703)
 * New User Registration – For Admin
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374705)
 * The `[user_description]` shortcode will output the contents of the ‘Biographical
   Info’ field in the User’s profile who has just registered.
 * Hope this helps.
 * Thanks,
    Jack
 *  Thread Starter [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374725)
 * No, unfortunately not… I have a form that collect biographical info correctly,
   but when I use shortcode for email, it doesn’t work. I think it may be a bug…
   or something in settings that I can’t found.
    Thanks for your help, M.
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374762)
 * Hi hightechware,
    How are you collecting this information? Is it via a plugin
   or a theme? I suspect that it’s not being saved before the appropriate `create_user`
   hook is fired and as such, the information isn’t available in the notifications.
 * Let me know.
 * Thanks,
    Jack
 *  Thread Starter [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374763)
 * I use WP Customer Area and I collect them with this custom function:
 * add_action( ‘user_register’, ‘myplugin_user_register’ );
    function myplugin_user_register(
   $user_id ) { if ( ! empty( $_POST[‘company’] ) ) { update_user_meta( $user_id,‘
   company’, trim( $_POST[‘company’] ) ); } if ( ! empty( $_POST[‘user_address’])){
   update_user_meta( $user_id, ‘user_address’, trim( $_POST[‘user_address’] ) );}
   if ( ! empty( $_POST[‘zipcode’] ) ) { update_user_meta( $user_id, ‘zipcode’, 
   trim( $_POST[‘zipcode’] ) ); } if ( ! empty( $_POST[‘city’] ) ) { update_user_meta(
   $user_id, ‘city’, trim( $_POST[‘city’] ) ); } if ( ! empty( $_POST[‘country’])){
   update_user_meta( $user_id, ‘country’, trim( $_POST[‘country’] ) ); } if ( ! 
   empty( $_POST[‘company_telephone’] ) ) { update_user_meta( $user_id, ‘company_telephone’,
   trim( $_POST[‘company_telephone’] ) ); } update_user_meta( $user_id, ‘description’,
   trim( $_POST[‘company’] ) . ‘ – ‘ . trim( $_POST[‘user_address’] ) . ‘ – ‘ . 
   trim( $_POST[‘zipcode’] ) . ‘ ‘ . trim( $_POST[‘city’] ) . ‘ – ‘ . trim( $_POST[‘
   country’] ) . ‘ – ‘ . trim( $_POST[‘company_telephone’] ) );
 *  }
 * I collect a lot of custom field from registration form and since your plugin 
   doesn’t not use shortcodes for ACF fields, I decided to put everything in description
   meta.
    Is this hook correct? Do you know a better workaround? Let me know if 
   thers’s a bug in user_description shortcode. Thank you for your help, M.
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374764)
 * Have you seen this? [https://betternotificationsforwp.com/downloads/custom-fields/](https://betternotificationsforwp.com/downloads/custom-fields/)
 *  Thread Starter [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374765)
 * Ok, I’ve seen that I have to spend some money… Tell me just one thing, is that
   hook correct to collect user_meta description?
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374766)
 * Well, the Custom Fields add-on will currently allow you to use the contents of
   ACF custom fields in your BNFW notifications for posts / pages / custom post 
   types.
 * Is the information you’re collecting being stored in the Biographical information
   textbook when you view a user’s profile? If you can see it there, then it would
   suggest that it’s working correctly.
 * Thanks,
    Jack
 *  Thread Starter [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374767)
 * I see biographical information in user’s profile after registration, but notification
   field in email is empty…
 * User Login: [user_login]
 * User Email: [user_email]
 * Dati azienda: [user_description]
 * First and second are ok, third comes blank.
    Any suggestion? Thanks a lot, M.
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374768)
 * Ok, I think it’s as I said here:
 * > I suspect that it’s not being saved before the appropriate create_user hook
   > is fired and as such, the information isn’t available in the notifications.
 * Are you able to change the order of the function to something later? Something
   like ‘1’ so that it executes first?
 * Jack
 *  Thread Starter [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374769)
 * Any tips to do this?
    Thks, M.
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374770)
 * These resources might help:
 * [https://developer.wordpress.org/reference/functions/add_action/](https://developer.wordpress.org/reference/functions/add_action/)
 * [http://wordpress.stackexchange.com/questions/192429/how-to-know-what-priority-to-use-with-add-action](http://wordpress.stackexchange.com/questions/192429/how-to-know-what-priority-to-use-with-add-action)
 * Jack
 *  Thread Starter [hightechware](https://wordpress.org/support/users/hightechware/)
 * (@hightechware)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374771)
 * Thanks a lot, it works!
    I just put a priority level (1)… bye, M.
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374772)
 * Hi hightechware,
    Great! So pleased.
 * If you like the plugin and the support, please feel free to [leave an honest review](https://wordpress.org/support/view/plugin-reviews/bnfw#postform).
 * Thanks,
    Jack

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘User-description shortcode doesn't work’ is closed to new replies.

 * ![](https://ps.w.org/bnfw/assets/icon.svg?rev=2531573)
 * [Customize WordPress Emails and Alerts - Better Notifications for WP](https://wordpress.org/plugins/bnfw/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bnfw/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bnfw/)
 * [Active Topics](https://wordpress.org/support/plugin/bnfw/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bnfw/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bnfw/reviews/)

 * 15 replies
 * 2 participants
 * Last reply from: [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/user-description-shortcode-doesnt-work/#post-7374772)
 * Status: resolved