Replies
Viewing 3 posts - 1 through 3 (of 3 total)
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 useget_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 ); }
- This reply was modified 5 years, 9 months ago by Timothy Fisher.
- This reply was modified 5 years, 9 months ago by Timothy Fisher.
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 anitem_id
to use here.
Viewing 3 posts - 1 through 3 (of 3 total)