ID, 'product_feature', true ); $product_feature_count = get_post_meta( $post->ID, 'product_feature_count', true ); $f_count = 0; if(!empty($product_feature)){ foreach ($product_feature as $key => $value) { $f_count++; ?>

Add your fontawesome icon. Example: fa-shield. Full list of icons is here
Add Product Feature
array( 'href' => array(), 'title' => array() ), 'br' => array(), 'em' => array(), 'strong' => array(), ); $product_feature_name = get_post_meta( $post->ID, 'product_features_feature_name', true ); $product_feature_description = get_post_meta( $post->ID, 'product_features_feature_description', true ); $product_feature_icon = get_post_meta( $post->ID, 'product_features_feature_icon', true ); $product_feature_count = get_post_meta( $post->ID, 'product_features_count', true ); $stz_product_features = $_POST['product_features']; $stz_product_feature_name = sanitize_text_field( $_POST[ 'product_features_feature_name' ] ); $stz_product_feature_description = wp_kses( $_POST[ 'product_features_feature_description' ], $ap_cpt_allowed_textarea ); $stz_product_feature_icon = sanitize_text_field( $_POST[ 'product_features_feature_icon' ] ); $stz_product_feature_count = sanitize_text_field( $_POST[ 'product_features_count' ] ); update_post_meta($post_id, 'product_feature', $stz_product_features); //update product feature description if ( $stz_product_feature_description && '' == $stz_product_feature_description ){ add_post_meta( $post_id, 'product_features_feature_description', $stz_product_feature_description ); }elseif ($stz_product_feature_description && $stz_product_feature_description != $product_feature_description) { update_post_meta($post_id, 'product_features_feature_description', $stz_product_feature_description); } elseif ('' == $stz_product_feature_description && $product_feature_description) { delete_post_meta($post_id,'product_features_feature_description'); } //update product feature icon if ( $stz_product_feature_icon && '' == $stz_product_feature_icon ){ add_post_meta( $post_id, 'product_features_feature_icon', $stz_product_feature_icon ); }elseif ($stz_product_feature_icon && $stz_product_feature_icon != $product_feature_icon) { update_post_meta($post_id, 'product_features_feature_icon', $stz_product_feature_icon); } elseif ('' == $stz_product_feature_icon && $product_feature_icon) { delete_post_meta($post_id,'product_features_feature_icon'); } //update data for product features count if ( $stz_product_feature_count && '' == $stz_product_feature_count ){ add_post_meta( $post_id, 'product_features_count', $stz_product_feature_count ); }elseif ($stz_product_feature_count && $stz_product_feature_count != $product_feature_count) { update_post_meta($post_id, 'product_features_count', $stz_product_feature_count); } elseif ('' == $stz_product_feature_count && $product_feature_count) { delete_post_meta($post_id,'product_features_count'); } } add_action('save_post', 'ap_cpt_product_fetures_save_post');