Search code examples
wordpressbuddypress

Not showing groups in front-end website but group present on data base buddypress wordpress?


I have inserted wp_bp_groups by using $wpdp class. All fields gets inserted but the groups I have inserted are not shown in the website. Only those groups are shown that are created using website interface. Please help me to resolve the issue. Thanks.


Solution

  • Use the BuddyPress functions for BuddyPress operations. In this case, use groups_create_group( $args ) located in buddypress\bp-groups\bp-groups-functions.php

    The groups you inserted directly probably don't have any members - so they don't show up. Use the function above to create groups and you won't have that problem.