I am having huge problems getting my settings page values,
I have tried both
$value = rwmb_meta( $field_id, array( 'object_type' => 'setting' ), $option_name );
And
$settings = get_option( 'option_name' );
$field_id = 'your_field_id';
if ( isset( $settings[$field_id] ) ) {
return $settings[$field_id];
}
Both don't seem to work, I am just getting an empty return.
I am just adding the code to a subfolder with an included file in the child theme, all the other metabox code that is working fine is in the same file.
What could be the issue?