Alex Coulstring
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [Animated Number Counter] Not showing anythng for meI fixed it. I didn’t add the new profiles to the counter.
Just an FYI. for people new to this. 🙂
Forum: Plugins
In reply to: [Participants Database] Max characters for search field?Can you let me know when your site works again?
Both Firefox and Chrome shows a blank screenForum: Developing with WordPress
In reply to: Need Given Role Name, not Role IDThanks 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
In reply to: Need Given Role Name, not Role IDHey 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 = regularuserThe output was regularuser
not Regular UserForum: Plugins
In reply to: [PHP Code Widget] Trying to display Role. But its always administratorI 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)