Featured media on members list


#1

Hi,

I would like to use the featured media tag on the members list to display the featured image and also the member avatar. How would I do this?

I added this `


<?php rtmedia_featured(); ?>
` to the members-loop and it does display the featured image of the user who is logged on but then copies it for all the members instead of showing their individual featured image.

How would I go about displaying the unique featured image per user?

Does that make any sense at all?


#2

@silverbonito,

Use this line of code to display featured image of particular user in members-loop.php file.

<?php rtmedia_featured( bp_get_member_user_id() ); ?>


#3

Thank you, sometimes the most obvious solutions completely pass us by. I feel like a tool, i also look like a wrench so thank you again! Worked perfectly.


#4

#5