I'd like to display the values of a custom taxonomy linked to each user, in a User loop.
I am using Bricks, and have set on a container in a Page a loop for Users. So far it works good and displays them listed.
But when I want to add below the user names the values of a custom taxonomy (taxonomy slug is "disciplines", custom field ID is "frigos_user_discipline"), I either only get the values of the logged in user (so the same below every user name, which is not good), or I get various error messages if I try to modify the query.
So far I am using this code block (that displays the same everywhere) :
<?php
$terms = rwmb_meta( 'frigos_user_discipline', [ 'object_type' => 'user' ], get_current_user_id() );
?>
<div style="line-height: 1em;">
<?php foreach ( $terms as $term ) : ?>
<span class="fr--tag__discipline" style="margin-right: 1em;"><?= $term->name ?></span>
<?php endforeach ?>
</div>