Buddypress xprofile_insert_field_groupo Bug
-
i want to create Social Network field Group. in Social NEtwork Field Groupd i want to create One Custom Field Called LastFm
i did try following code which gives error. it returns Multiple duplicate fields.
check this screenshot: http://awesomescreenshot.com/035430kucd
here is my code:
add_action('bp_init', 'field_xprofile_twitter'); function field_xprofile_twitter() { global $bp; $group_args = array( 'name' => 'Social Networks' ); $group_id = xprofile_insert_field_group( $group_args ); $xfield_args = array ( 'field_group_id' => $group_id, 'name' => 'lastfm', 'can_delete' => false, 'field_order' => 1, 'is_required' => false, 'type' => 'textbox' ); xprofile_insert_field( $xfield_args ); }
Need Help to create Profile Field Programmaticaly.
Looking forward to hearing from you.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Buddypress xprofile_insert_field_groupo Bug’ is closed to new replies.