@mlcapulong
Active 1 year, 7 months ago
-
Henry Wright replied to the topic Get all xprofile select field options in the forum How-to & Troubleshooting 7 years, 11 months ago
Hi @mlcapulong
If you know the field ID, you can do this:
$field = new BP_XProfile_Field( $field_id );
$children = $field->get_children();
if ( $children ) {
foreach ( $children as $child ) {
// Do something here.
// var_dump( $child );
}
}