Tagged: group type
Hi, thank you very much for the great support you give in this forum π
I am using bp-create-group-type pluging. I am working on showing the location of the groups on a map, and I would like that when clicking on the position of a group on the map it would give me the information of the type of group, assigned to each group. I know it is not your development but maybe you can give me a clue where to look …I am using this code to show the result on the map but i dont know wich “function I sould call”….
marker<?php echo $group_id ?>.bindPopup('<b><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></b><b><a href="<?php bp_group_permalink(); ?>"><p>Group type:</p><?php function I sould call(); ?></a></b><?php echo $group_location; ?><br>');
Thank Ravi, when i use this function , the screem only show me the main header…but the rest desapear…I dont know the reasson , because i look at the codex.buddypress.org documentation and you was rigth…sould be the “funtion bp_groups_get_group_type()” The console doesΒ΄t give me any clue…
I prove with other fuction like “bp_group_avatar_thumb()” and its work showing the group avatar…but with the type of group, i dont know…Hi Alejandro ,
You will need to pass the group id to the function like this
echo bp_groups_get_group_type( $group_id, true );
Pass a value for the $group_id. The second parameter determines if it returns single value or an array.
Regards
BrajeshYou are welcome.
I am glad you got it all working πRegards
Brajesh
You must be logged in to reply to this topic.