Tagged: mediapress
Hi ,
I would like display last added photo of displayed user next to profile picture.
My question is:
Do I can do this via shortcode or I nave write custom loop I tried use this loop from the example : ( https://buddydev.com/mediapress/topics/api-reference/core/mpp_media_query/ ) and function “bp_displayed_user_id”
bud don’t work for my// The Query
$user_id = bp_get_member_user_id();
$the_media_query = new MPP_Media_Query( ‘author=’ . $user_id );- This topic was modified 8 years, 4 months ago by Tomasz Sztreker.
Ok it working, I used code below , i hope it is correct solution.
global $bp;
$user = $bp->displayed_user->id;
$args = array(
‘user_id’ => $user,
);// The Query
$the_media_query = new MPP_Media_Query( $args );
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
This topic is: not resolved