Create xprofile multi select field via code
-
Hi there,
I need to create an xProfile multi-select field that mapps to the tags in use on the site. I cnow how to fetch the tags, but I am not sure how to create and configure the appropriate field type via code.
//Fetching tags for more responsiveness $tags = guet_tags( array( 'orderby' => 'name', 'hide_empty' => true, ) ); $tag_field_values = array(); foreach ( $tags as $tag ) { $tag_field_values[ $tag->name ] = $tag->name; }Which functions / actions would I then use to create the BuddyPress profile field using the
$tag_field_valuesvariable as the field’s select list?Does anybody have a worqued example I can follow?
- You must be loggued in to reply to this topic.