Title: User Roles Array
Last modified: July 21, 2020

---

# User Roles Array

 *  Resolved [alexd100](https://wordpress.org/support/users/alexd100/)
 * (@alexd100)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/user-roles-array/)
 * Hi, love the plugin! I’m trying to display multiple User Roles of the current
   logged in user using the following:
 *  [vg_display_data key=”wp_capabilities” data_source=”user_meta”]
 * (wp is actually replaced with my database prefix) and it returns the word ‘Array’
   rather than the array list itself. How can I get it to display the list of roles?
    -  This topic was modified 5 years, 9 months ago by [alexd100](https://wordpress.org/support/users/alexd100/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jose Vega](https://wordpress.org/support/users/josevega/)
 * (@josevega)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/user-roles-array/#post-13152742)
 * Hi Alex
 * I released an update. Please install it.
 * This shortcode will work:
    `[vg_display_data key="roles" data_source="user_data"]`

Viewing 1 replies (of 1 total)

The topic ‘User Roles Array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcode-to-display-post-and-user-
   data.svg)
 * [Display custom fields in the frontend - Post and User Profile Fields](https://wordpress.org/plugins/shortcode-to-display-post-and-user-data/)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-to-display-post-and-user-data/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-to-display-post-and-user-data/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-to-display-post-and-user-data/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-to-display-post-and-user-data/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jose Vega](https://wordpress.org/support/users/josevega/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/user-roles-array/#post-13152742)
 * Status: resolved