To change the display order of the countries, you need to add a special PHP code in the file “functions.php” of your theme/child theme. This task requires some developer skills!
Copy and paste the following code in the file “functions.php” of your theme. The code will change the field “Countries” from a multicheck list to a multiselect & sort field.
/**
* Progress Map WordPress Plugin.
* Change the countries field type to "Multiselect & Sort".
*
* @since 3.0
*/
add_filter("cspm_countries_field_type", function(){ return true; });
Once you added the code to your theme, do the following:
- Edit a map
- Open the widget “Progress Map Settings”.
- Click on the menu “Zoom to country”.
- In the field “Countries”, remove the countries you don’t want to use by clicking on the “x”. To sort them, drag a country name to the position where you want it to be.
In the same context
- Countries search
- Automatically open the countries list once the map is loaded
- Show the country bounds
- Zoom the map to the country center point
- Add search field to countries list
- Change the countries list button image
- Choose the language to use when displaying the countries names
- Show and/or hide the countries flags and/or names
- Choose the countries to use in the search