I’m using Buddypress with rtmedia plugin. What I'm trying to achieve is to display total media likes count of each members' gallery on their respective header. I tried this code but it always displays 0... Maybe someone can help

function custom_rtmedia_likes() {
    global $rtmedia;  
    $likecount = intval( $rtmedia->likes ); ?>
    <span id="media-likes"><?php echo $likecount; ?> Likes</span>


add_action('bp_before_member_header_meta', 'custom_rtmedia_likes');
  • Not sure how rtmedia plugin stores likes , please use plugin support forum on wordpress or author site if paid plugin. – Mohsin Jan 26 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.