ID ) ? $post->ID : get_the_ID(); $fields_data = adqs_single_page_fields_render( $post_id ); // Check if pricing input type exists in fields data $has_pricing_field = false; if ( ! empty( $fields_data ) && is_array( $fields_data ) ) { foreach ( $fields_data as $section ) { if ( isset( $section['fields'] ) && is_array( $section['fields'] ) ) { foreach ( $section['fields'] as $field ) { if ( isset( $field['input_type'] ) && $field['input_type'] === 'pricing' ) { $has_pricing_field = true; break 2; // Break out of both loops } } } } } $price = AD()->Helper->get_price( $post_id ); ?>