bp_get_member_type() is not working in the loop
-
Hi @ all!
I was so happy to see this brilliant new feature in BP 2.2 as I lived with my own solution for the past years what did everything a bit complicated. So I was happy to register two new member types and to assign some types to different members. Now I would like to show in the members loop, what member type the single members are. But this is no working. I tried it for the past hours in many different ways without success. Please have a look to my code below, which I used within the members-loop.
BTW if I use
bp_get_member_type( '123' )
with the ID of a single user, I gives me the result. But that’s not what I need.<?php $user_id = bp_get_member_user_id(); $type = bp_get_member_type( $user_id ); ?>
I’m looking forward to your answers,
Philipp
- The topic ‘bp_get_member_type() is not working in the loop’ is closed to new replies.