Skip to:

How to add fields to group creation with Group extension API (please read)

  • alfredojp


    I’m pretty good with MySql but not so hot with PHP. I’ve spent two weeks trying to figure out how to add
    another field(s) to the group creation so that a few more fields would be standard for the groups (i already know about that plugin that lets group admin put in fields aftewards), hours and hours and hours on these same forums with little help. I ran across group extension API code ( ) but i have no idea how to use it. What do i add, and in what file do i put it in (functions.php, bp-custom.php) so that i can have group fields (at creation) for city, state, country and phone number.

    Any help in this is greatly appreciated.

Viewing 7 replies - 51 through 57 (of 57 total)

  • 4ella


    As far as I know those fields are already in GROUP creation form (in first step exactly ) , fields are also in GROUP edit form , everything working fine for me ( at least by me modified boone’s&modemlooper’s code ), fields are succesfully saved in database , we only don’t know how to display them in group-header.php.

    i’m giving it a shot now :D , i’ll get back as soon as i finish testing the plug in



    To output extra info you need to create a function in your plugin file, for each saved info you need to get it, below is only retrieving one field. Then attach it to the header meta action:

    `function extra_fields_output(){
    global $bp, $wpdb;

    $group_text = groups_get_groupmeta( $bp->groups->current_group->id, ‘e2e_text’ );
    echo $group_text;
    add_action( ‘bp_group_header_meta’, ‘extra_fields_output’ );`



    Thank you very very much @modemlooper !!
    I think that somebody would be happy to use fully working Buddypress Group Fields boones&modemloopers plugin, I have uploaded mine fully working fields to pastebin , so you only need to change the names of your fields , my fields are created for clubs&bars&restaurant website :
    If you want to see how it works , take a look here on this example:
    PHP experts pls. control the code , it is working for me , I did my best .
    Tomorrow I will want to change with the help of .css one column

    to two columns


    oh my goodness! thank you @modemlooper! omg omg T_T

    im having a problem in displaying the custom informations on my buddypress groups, I’m using my own custom made buddypress theme and I’m having a problem displaying the infos, can anyone help me?? Thanks Guys…



    The github page for the plugin in question is gone now.. is it available somewhere else now?

Viewing 7 replies - 51 through 57 (of 57 total)
  • The topic ‘How to add fields to group creation with Group extension API (please read)’ is closed to new replies.
Skip to toolbar