• Resolved jcfromkc

    (@jcfromkc)


    Has anyone figured out how to output a users total number of images, music and videos? In BuddyPress I’m using front.php to completely customize the users profile. I’ve found a way to show the users friend and followers count but nothing seems to work when it comes to rtMedia.

    I’ve found the article that shows how to add the count to the album, but I’m looking to add the image, music and video count to the users profile page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Krupa Nanda

    (@krupajnanda)

    Hi @jcfromkc

    Has anyone figured out how to output a user’s total number of images, music and videos?

    If you want to show the total number of media count on user’s profile then you can refer to this guide – https://rtmedia.io/docs/developers/add-media-count-media-gallery/

    If you have any further query feel free to create a new support ticket on our support channel – https://rtmedia.io/support/ to discuss further on this topic.

    Thanks,

    Krupa

    Plugin Contributor Krupa Nanda

    (@krupajnanda)

    Hi @jcfromkc

    Following up on my previous reply, were you able to look into the guide I shared above?

    Let us know if you need any further assistance!

    Thanks,

    Krupa

    Thread Starter jcfromkc

    (@jcfromkc)

    Sorry but I can’t get the above code to work. I’ll keep trying things on my end.

    To display a users profile page I’m using front.php.

    https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    On that page I’d like to display the number of media items the user has posted.

    Really just looking for a way to display the users media count. I don’t need to display the media as well.

    Is there a shortened version of the mentioned code that will display the media count only?

    Thx

    Thread Starter jcfromkc

    (@jcfromkc)

    I figured it out. I used the following code in my custom front.php file.

    <?php rtmedia_gallery( array( 'per_page' => '0', 'media_type' => 'photo' ,'context' => 'profile', 'show_count' => 'true', 'context_id' => bp_displayed_user_id() ) ); ?>

    Thx

    This doesn’t work for me… Has somebody another solution? I would need to display pictures count and video count on the member profile header.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image and Video Count’ is closed to new replies.