@mlcapulong
Active 1 year, 8 months ago
-
Henry Wright replied to the topic Get all xprofile select field options in the forum How-to & Troubleshooting 8 years 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 );
}
}