BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 7
    Timothy Fisher on #22168

    Awesome, thank you Brajesh!

  • Participant
    Level: Initiated
    Posts: 7
    Timothy Fisher on #22084

    EDIT:

    Didn’t see that you had posted a reply already. As you mentioned other versions don’t use caching, which is probably the version I posted below. I will go with your function, thank you!!

    I ended up finding the class-bpmtp-avatar-helper.php file! I saw that in there you guys use get_post_meta. So I did something like this:

    
    
    $member_types = get_posts( array( 'post_type' => 'bp-member-type', 'numberposts' => -1 ) );
    
    foreach ( $member_types as $member_type ) {
        $avatar_full_url = get_post_meta( $member_type->ID, '_bp_member_type_associated_avatar_full_url', true );
    }
    
    
  • Participant
    Level: Initiated
    Posts: 7
    Timothy Fisher on #22081

    Hi Brajesh! Thanks for the response.

    I would like to show the member type avatar within a shortcode. I’m building a shortcode and I have retrieved the list of member types by using bp_get_member_types( array(), 'objects' );.

    I was thinking I’d have to use bp_core_fetch_avatar(), but I don’t see an item_id to use here.