$section ) { if ( $section['id'] == 'general' || $section['id'] == $post_type ) { foreach ( $section['fields'] as $field ) { $id_field = $field['id']; if ( ! empty( $post_meta[ 'artistas_only_' . $id_field ] ) ) { if ( $id_field == 'favicon' || $id_field == 'logo' ) { $artistas_theme_options[ $id_field ] = array( 'id' => $post_meta[ 'artistas_only_' . $id_field ][0] ); } else { $artistas_theme_options[ $id_field ] = $post_meta[ 'artistas_only_' . $id_field ][0]; } } } } } } } } new ArtistasAdminSetup;