diff --git a/inc/mep_cpt.php b/inc/mep_cpt.php index cc03599..d444e83 100644 --- a/inc/mep_cpt.php +++ b/inc/mep_cpt.php @@ -44,7 +44,7 @@ function mep_cpt() ); $rewrite = array( - 'slug' => 'mage-events', + 'slug' => $event_slug, 'with_front' => true, 'pages' => true, 'feeds' => true, diff --git a/inc/mep_functions.php b/inc/mep_functions.php index 6fa176b..5ab3971 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -1682,7 +1682,7 @@ if (!function_exists('mep_event_list_price')) { $price_arr[] = array_key_exists('option_price_t',$ticket) ? $ticket['option_price_t'] : null; } } - + $price_arr = sizeof($price_arr) > 0 ? $price_arr : [0]; return $type == 'price' ? wc_price(min($price_arr)) : count($price_arr); } }