Forum Replies Created
-
(Sorry, I realized I was sourcing my Text Editor’s line numbers in my previous post)
Figured it out!
Here is the working code: http://pastebin.com/pHAcNwq9
Line 24-26 grabs the User IDs. I had to replace bp_group_member_id() with bp_get_group_member_id(). bp_group_member_id() was echoing out the ID number and not passing any value to the bio function.
Line 28-31 displays the Biography profile field.
@shanebp I still can’t get the bios to show.
You can see my modified code here: http://pastebin.com/XP4SUFYi
Lines 59-61 are what gets the Member ID (currently printing out on screen as confirmation).
Lines 63-66 is the code block you gave me to implement, but it is not displaying any bios.
@shanebp For whatever reason, the lines 27-38 that pull in member biographies are not working. No user biographies are being returned (the code works on the Members Directory, not the Groups). Any clue what is going on there?
You are awesome by the way @shanebp. Really, really appreciate you helping me out.
I figured it out!
Here is my new line 15 (php tags stripped out so you can see them here):
`if ( bp_group_has_members( ‘group_id=’.bp_get_group_id().’&exclude_admins_mods=false’ ) ) :`Thanks again for the help @shanebp.
Here is a copy of the code in question: http://pastebin.com/J5sEfVNt
When I hard code a group_id into Line 15, I can see members appear. However, I need it to be dynamic, as I want each group to show all members.
Thanks for the quick reply @shanebp.
I tried using:
`if ( bp_group_has_members() )`However, when I check out the Groups directory, each group has the message “This group has no members”. Is there any way to pass the group_id to bp_group_has_members() without hard coding it?