thanks for the tip, searched on the internet,
was able to output as an object, did it
$post_id = get_the_ID();
$group_id = get_post_meta( $post_id, ‘_bcg_group_id’, true );
$group_obj = groups_get_group ( $group_id );
$href = bp_get_group_permalink( $group_obj );
Author: *a href=”<?php echo $href;?>”><?php echo bp_group_name( $group_obj );?></a*
this works for me,
maybe there is another way,
thanks for helping.
- This reply was modified 3 months, 2 weeks ago by Vlad.
You are my super star !!!
Everything works as it should.
Changed a little.
Field name – group slug
$field = ‘My Field Name’; // Please Update it with Your Xprofile field id or name.
$field = bp_get_group_slug( groups_get_current_group() );
Thank you very much!!!