if ( is_array( $this -> custom_fields ) ) : ?> foreach ( $this -> custom_fields as $custom_field ): ?> if ( $custom_field['type'] == 'text' ) : ?>