WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kraigg
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/bowe-codes/

  2. imath
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 10 months 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

About this Topic