Display User Attributes on Members List
Permalink
I'm building a single page (members.php) that lists all the Users' attributes in a table, with the column headings being the attribute key names.
I've been using this:
However it only gets me half there. Is there a way to get the attributes that should only be displayed on the members list (since this seems to be a setting you can make in the Dashboard in User Attributes)?
I've been using this:
$uaks = UserAttributeKey::getPublicProfileList();
However it only gets me half there. Is there a way to get the attributes that should only be displayed on the members list (since this seems to be a setting you can make in the Dashboard in User Attributes)?
Or, put it another way: I want to list all the attribute names for User Custom Attributes.
Figured it out myself:
This is what was needed. It was hiding in user.php in the core, of course.
$uaks = UserAttributeKey::getMemberListList();
This is what was needed. It was hiding in user.php in the core, of course.
Hi, could you please explain how exactly you got the attribute titles to be displayed in the member list? Im a complete n00b and cant figure it out!! Excuse my tardiness :)
Thanks!
Thanks!