Does anybody know how can i get the member id in a loop of buddy press:
`<?php while ( bp_members() ) : bp_the_member(); ?>`
there is the bp_member_name, but i dont know how to get the id….
any ideas?
Does anybody know how can i get the member id in a loop of buddy press:
`<?php while ( bp_members() ) : bp_the_member(); ?>`
there is the bp_member_name, but i dont know how to get the id….
any ideas?
You must be logged in to post a comment.
I believe you can use:
That should get you the member id.
Hope this helps.
i found the answer in the budy press forum :
bp_member_user_id() to echo the ID
and bp_get_member_user_id() to get the ID