Change the display order of the countries in the list


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:

  1. Edit a map
  2. Open the widget “Progress Map Settings”.
  3. Click on the menu “Zoom to country”.
  4. 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