reduce country list
-
Hello,
I try to reduce the country-list in a front-end form to Germany, Switzerland and Austria. I’m not a PHP-expert. Can someone help to adjust this code in location.php?
<select id="location-country" name="location_country"> <option value="0" <?php echo ( $EM_Location->location_country == '' && $EM_Location->location_id == '' && get_option('dbem_location_default_country') == '' ) ? 'selected="selected"':''; ?>><?php _e('none selected','events-manager'); ?></option> <?php foreach(em_get_countries() as $country_key => $country_name): ?> <option value="<?php echo $country_key; ?>" <?php echo ( $EM_Location->location_country == $country_key || ($EM_Location->location_country == '' && $EM_Location->location_id == '' && get_option('dbem_location_default_country')==$country_key) ) ? 'selected="selected"':''; ?>><?php echo $country_name; ?></option> <?php endforeach; ?> </select><?php echo $required; ?> Is there also a way to predifine Germany?
Thanks very much!
Gerd
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘reduce country list’ is closed to new replies.