Bowe Codes
[resolved] Possible to display group type and member count? (4 posts)

  1. kraigg
    Posted 3 years ago #

    Hi there,

    I'm using the bc_group shortcode (ie, [bc_group slug="my-group-name"]) to list individual groups, and show the group avatar and description.

    Using this shortcode, is it possible to show the group type (ie "This group is public/private/hidden") and also the number of members of this group (ie, "This group has xx members")?

    Thank you


  2. imath
    Plugin Author

    Posted 3 years ago #

    Hi there,

    At line 84 of main plugin file (bows-codes.php), just add this code :
    $group_html .= '<p>'. bp_get_group_type( $group ) .' / '. bp_get_group_total_members( $group ) .' member(s)</p>';

  3. kraigg
    Posted 3 years ago #

    Hi imath, that worked really well, thank you!

    Is there a chance this functionality could become part of the next update? I'm sure there would be other people who would find it very useful also

  4. Vernon Fowler
    Posted 2 years ago #

    I'm using version 2.1 of the plugin. Perhaps the widget/builder can include checkboxes to show or hide the description and the total members. That would be a "nice to have" option.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Bowe Codes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic