How to retrieve usermeta data or userdata into table?
-
Hi,
I have just installed TablePress to implement a table which can include user data such as first name, last name, and work position etc…
I have just tried to use php code as shown below, but it doesn’t work.
<?php $user_info = get_userdata(1);
echo ‘Username: ‘ . $user_info->user_login . “\n”;
echo ‘User level: ‘ . $user_info->user_level . “\n”;
echo ‘User ID: ‘ . $user_info->ID . “\n”;
?>I think there should be an easy way of doing this be taking advantage of all nice TablePress features.
Thanks.
Terry Ahn
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to retrieve usermeta data or userdata into table?’ is closed to new replies.