DidouS

20211206-cc-settings field

Dec 6th, 2021
963
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $group_key = 'huis_1_test';
  2. $sub_field_key = 'huis_1_featured_sf';
  3. $group_values = rwmb_meta( $group_key, ['object_type' => 'setting'], 'website' );
  4. print_r ($group_values);
  5. foreach ( $group_values as $index=>$group_value ) {
  6.         $value = ( $index == $sub_field_key ? $group_value : '' );
  7.         print_r($value); // Display sub-field value
  8. }
RAW Paste Data