[memb_bp_profile_field]
Description
Fetches an xProfile field by name (or ID) via
xprofile_get_field_data() and outputs the value, HTML-escaped.
Array values (multi-select, checkbox fields) are joined with
', '.
When the xProfile component is inactive, admins see a diagnostic notice and everyone else sees nothing.
Shortcode Examples
[memb_bp_profile_field field="Hometown"]
Another user's field:
[memb_bp_profile_field field="Hometown" user_id="42"]
Shortcode Parameters
field
xProfile field name or ID. Required. Default: ''.
user_id
User ID whose field is displayed. Default: 0 (current user).
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | No |
| Nestable | No |
| Accepts formatting | No |