Title: Alex Coulstring's Replies | WordPress.org

---

# Alex Coulstring

  [  ](https://wordpress.org/support/users/alexcoulstring/)

 *   [Profile](https://wordpress.org/support/users/alexcoulstring/)
 *   [Topics Started](https://wordpress.org/support/users/alexcoulstring/topics/)
 *   [Replies Created](https://wordpress.org/support/users/alexcoulstring/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/alexcoulstring/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/alexcoulstring/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/alexcoulstring/engagements/)
 *   [Favorites](https://wordpress.org/support/users/alexcoulstring/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Animated Number Counter] Not showing anythng for me](https://wordpress.org/support/topic/not-showing-anythng-for-me/)
 *  Thread Starter [Alex Coulstring](https://wordpress.org/support/users/alexcoulstring/)
 * (@alexcoulstring)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/not-showing-anythng-for-me/#post-13975645)
 * I fixed it. I didn’t add the new profiles to the counter.
 * Just an FYI. for people new to this. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Participants Database] Max characters for search field?](https://wordpress.org/support/topic/max-characters-for-search-field/)
 *  Thread Starter [Alex Coulstring](https://wordpress.org/support/users/alexcoulstring/)
 * (@alexcoulstring)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/max-characters-for-search-field/#post-11203492)
 * Can you let me know when your site works again?
    Both Firefox and Chrome shows
   a blank screen
 * [https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/pdb-templates/](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/pdb-templates/)
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Need Given Role Name, not Role ID](https://wordpress.org/support/topic/need-given-role-name-not-role-id/)
 *  Thread Starter [Alex Coulstring](https://wordpress.org/support/users/alexcoulstring/)
 * (@alexcoulstring)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/need-given-role-name-not-role-id/#post-10779466)
 * Thanks for your help. The above solution would mean I need to know the roles 
   to code. They will be changing alot so I need a code to show the full Role Name.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Need Given Role Name, not Role ID](https://wordpress.org/support/topic/need-given-role-name-not-role-id/)
 *  Thread Starter [Alex Coulstring](https://wordpress.org/support/users/alexcoulstring/)
 * (@alexcoulstring)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/need-given-role-name-not-role-id/#post-10776169)
 * Hey Steven,
    I tried this
 *     ```
       <?php $role_names = array();
        $current_user = wp_get_current_user();
        $roles = $current_user->roles;
        foreach ($roles as $role) {
           $role_names[] = $role;
           }
             echo '' . implode(', ', $role_names) . "\n";
             ?>
       ```
   
 * I still only got the ID.
    for example Role Name = Regular User ID = regularuser
 * The output was regularuser
    not Regular User
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Code Widget] Trying to display Role. But its always administrator](https://wordpress.org/support/topic/trying-to-display-role-but-its-always-administrator/)
 *  Thread Starter [Alex Coulstring](https://wordpress.org/support/users/alexcoulstring/)
 * (@alexcoulstring)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/trying-to-display-role-but-its-always-administrator/#post-10747781)
 * I figured it out for anyone needing help.
    $current_user = wp_get_current_user()
   at the top instead of $user_info = get_userdata(1)

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