ID, 'mep_event_ticket_type', true); // echo "Hello"; // print_r($mep_event_ticket_type); if(array_key_exists('mep_available_seat', $event_meta)){ $mep_available_seat = $event_meta['mep_available_seat'][0]; }else{ $mep_available_seat = 'on'; } if($mep_event_ticket_type){ $stc = 0; $leftt = 0; foreach ( $mep_event_ticket_type as $field ) { $qm = $field['option_name_t']; $tesqn = $post->ID.str_replace(' ', '', $qm); $tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true); $stc = $stc+$field['option_qty_t']; $llft = ($field['option_qty_t'] - (int)$tesq); $leftt = $leftt+$llft; } ?>
( Left)
( Left)