How do you create two separate Register pages?

Basically all you need to do is add an hidden field named role and set the value to whatever role you want on the register form. add_action(‘register_form’,’show_role_field’); function show_role_field(){ ?> <input id=”role” type=”hidden” tabindex=”20″ size=”25″ value= “<?php if (isset($_GET[‘role’])){echo $_GET[‘role’];} ?>” name=”role”/> <?php } Next thing is to register that role when the user has … Read more

Best way to get user id for get_users function?

Your code doesn’t work because you’re using $bloguser instead of $user. And there’s no point in calling get_userdata() since get_users() already returns user objects: foreach ($blogusers as $user) { echo ‘<tr>’; echo ‘<td>’. $user->first_name .'</td>’; echo ‘<td>’. $user->last_name .'</td>’; echo ‘<td>’. $user->user_login .'</td>’; echo ‘<td>’. $user->user_email .'</td>’; echo ‘</tr>’; }