Oh thats a clever idea. I have been able to output when users are attached to a post before. To give context on what I am trying to do: I am trying to show members of my team and the community. Before, I used a CPT to show team members and wider community, but was too much admin. So I wanted to dynamically populate and keep updated. Can I add a get_users($args)
as the posts value with this method?
I tried with the get_users
, was fine for text but I struggled with their image. I use a custom field for my avatar, and so when I tried get_avatar_url()
/ get_avatar()
, it returned the default avatar and not the users avatar. And when I tried $image =rwmb_meta( 'custom_avatar', ['size' => 'thumbnail'], $user_id); src=$image
it returned nothing.
So still unsure which direction to go. If I can fix the second issue, then I think it might make more sense for my usecase.
Many thanks,
Yasmine