Total Uploaded Media Files


#1

Hi,

I’d like to ask for some help here, I wanted to put on the members profile (Below Last Active Time) the total Media Files Uploaded (Like Shown on the Members Profile Navigation Menu), How do I call the total Uploaded media for one user?

Thaks


#2

All the counts are stored as meta values.

You can get the counts using following code. It will return an array using which you can show counts.

$rtmedia_nav = new RTMediaNav(false);  
$media_counts = $rtmedia_nav->actual_counts(bp_displayed_user_id());

#3