ACF User field + query loop

Hi I have user field type that I want to output user name and avatar.

talks (repeater)
└── talk_schedules (repeater)
└── talk_group (group)
└── talk_speaker (user, multiple)

Tried using the dynamic data simply returns user name separated by comma.

So is it possible to use the query loop so that I have freedom access to all user data and at the same the frontend will only display selected talk speaker (user) ?

I also tried with custom code still no luck

<?php
$group = get_sub_field('talk_group'); 
$users = $group['talk_speaker'];     

if ($users && is_array($users)) :
?>
    <ul class="talk_speaker-list">
        <?php foreach ($users as $user) : ?>
            <li>
                <?php echo get_avatar($user->ID, 48); ?>
                <?php if (!empty($user->user_url)) : ?>
                    <a href="<?php echo esc_url($user->user_url); ?>">
                        <?php echo esc_html($user->display_name); ?>
                    </a>
                <?php else : ?>
                    <?php echo esc_html($user->display_name); ?>
                <?php endif; ?>
            </li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>

Please help

TIA

i would not use the meta query on the query tab because its more like a filter. Remove the meta query setting and add the data u want to the pagebuilder element by dynamic data.

This page has specific data tags for inside the dynamic data

User profile fields

{wp_user_id} – Returns current user context ID
{wp_user_login} – Returns current user context username
{wp_user_email} – Returns current user context email address
{wp_user_url} – Returns current user context website
{wp_user_author_url} – Returns current user context author URL
{wp_user_role} – Returns current user context primary role. Use :value to return the role slug. (@since 1.12)
{wp_user_registered_date} – Returns current user context registered date (@since 1.12)
{wp_user_nicename} – Returns current user context nicename
{wp_user_description} – Returns current user context biographical info
{wp_user_first_name} – Returns current user context first name
{wp_user_last_name} – Returns current user context last name
{wp_user_display_name} – Returns current user context display name
{wp_user_picture} – Returns current user context avatar image tag or url
{wp_user_meta:my_user_meta_key} – Returns current user context “my_user_meta_key” meta value

Add :plain inside the tag to remove url’s and so

{mydatatag:plain}

why not build custom post type and create your people as taxonomies you can build your relationship and query from there easily and filtering searching will be easier too

this way you can add multiple post for multiple event and just select the person for relationship that’s it

Event Post Type
Person Taxonomy
Location Taxonomy
use the title and content
make the rest custom fields

I made multiple events setups like this it is the best and simplest method

Always pick the simplest methods to query not the hardest…

instead of repeaters think if “this could be solved with post types or taxonomies”