Skip to:
Content
Pages
Categories
Search
Top
Bottom

Register Fields Not Reading “Second Group” In Admin Panel..

  • @luca-foss

    Member

    I created a second group in the admin panel called “Professional Information” and I noticed that the code says:

    `

    …(whatever)

    `

    where I think profile_group_id=1 is the first group….so I created another group in the admin panel and began adding fields..so I figured I need add a conditional that says:

    ` if ( bp_has_profile( ‘profile_group_id=2’ ) )`

    but I know that the second group isn’t identified by “id” because the code isn’t reading any

    tags that I place after the conditional statement..it just jumps/skips to the bottom and adds the submit button…

    so how do I identify additional groups in the admin panel for the register fields?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @r-a-y

    Keymaster

    To find the profile group id, navigate to “BuddyPress > Profile Field Setup”.

    Then under the profile group you want, hover over the “Edit” or “Delete” link.

    You should see a link that looks like this:
    `/wp-admin/admin.php?page=bp-profile-setup&mode=edit_group&group_id=2`

    “group_id” is the variable you’re looking for.

    The alternative is to remove the `’profile_group_id=1’` declaration in the register template, that should show all profile fields that you have created.

    @luca-foss

    Member

    I followed the latter of the suggestion..it was the easiest because all of the conditional statements are to much to follow…but the error I’m getting now is

    `Fatal error: Call to a member function profile_groups() on a non-object in /home/content/s/o/c/socialowner/html/21andolder/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-templatetags.php on line 160`

    I’m researching this error as I speak…

    @luca-foss

    Member

    okay…I solved it….thanks…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Register Fields Not Reading “Second Group” In Admin Panel..’ is closed to new replies.
Skip to toolbar