Finding profile field id
-
I have the code below which prints out every field+value that a member has filled in. I am trying to only display select field+value fields, but my first attempt failed and I’m not sure how to reference the fields.
First attempt (182, aka field_182):
bp_get_the_profile_field_name(182)
bp_get_the_profile_field_value(182)
Code block:
$this->tabs_instance->has_data[$name] = true; $this->tabs_instance->fields_data[$name] .= '<dt class="bp-field-name bp-field-id-' . bp_get_the_profile_field_id() . '">'. bp_get_the_profile_field_name().'</dt>'; $this->tabs_instance->fields_data[$name] .= '<dd class="bp-field-value bp-field-id-' . bp_get_the_profile_field_id() . '">'. bp_get_the_profile_field_value().'</dd>';
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.