Home Forums ACF PRO Choose User / Get Field Values


Choose User / Get Field Values

  • So, I have a front-end ACF post form that someone can fill out. They can choose a user, and I am wanting to display/echo that user’s custom field data in the submitted post.

    I have tried a number of things, but nothing is working. I can at least display the chosen user’s name…

                $username = get_field('choose_customer');
                $user = get_field_object($username);
                <span class="labels">Customer:</span> <?php echo $username['display_name']; ?><br />
                <span class="labels">Address:</span> <?php $username['clients_address']; ?><br />
                <span class="labels">Phone:</span> <?php the_field('clients_address', $user); ?><br />
Viewing 1 post (of 1 total)

The topic ‘Choose User / Get Field Values’ is closed to new replies.