-
-
Save Roy-Oto/7fcec5334438f9c9f8446d3bcfb6f9be to your computer and use it in GitHub Desktop.
To display User in Custom Field Suite.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$values = CFS()->get( 'field_users' ); | |
foreach ( $values as $user_id ) { | |
$the_user = get_user_by( 'id', $user_id ); | |
echo $the_user->user_login; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment