Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Extending User Profiles with dynamic options / post relationships

@magicroundabout

Participant

Thanks again Shane. I’ll try to explain again.

At high level, I want users, in their user profile, to be able to select one or more skills that they have. Skills are posts of a post type.

At lower level, I want, in a BP user profile, a field which is either a multi-select, or a set of checkboxes. The values selectable should be titles of posts from the “Skills” post type (I’ll actually save the IDs of the posts, but the titles should be displayed).

The user should be able to select these values both when registering and when editing their profile.

Possible implementations I can think of would be:
– Implement a new field TYPE called “skill”, create a field of that type in BuddyPress, and write some hooks that display and save the field.
– Add some custom code using action hooks to the bottom of the registration and edit profile screens.

I know it’s kinda hard to explain in a short forum post. There just doesn’t seem to be some simple, documented hooks that a plugin can use to extend the user profiles with new custom fields of new types and I was looking for some guidance/best practice for doing this.

Thanks again for your help.

Ross

Skip to toolbar