外掛說明
Listo is a simple plugin that supplies other plugins and themes with commonly used lists.
Usage
$countries = listo(
// List type
'countries',
// Options
array(
'group' => 'un',
'orderby' => 'value',
'order' => 'DESC',
)
);
安裝方式
- Upload the entire
listo
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
使用者評論
2023 年 6 月 18 日
Great country list to avoid us to list them manually
2021 年 5 月 27 日
Hola como funciona, lo instale pero no veo las opciones
gracias
2020 年 8 月 29 日
LISTO is an excellent little addition to Contact Form 7. Saves lots of time. Only one small snag in the list of countries is that they’re sorted in alphabetical order of the 3-letter code for each country, rather than the country’s name. Most of the time that makes hardly any difference, except for the United Kingdom, whose three-letter code is GBR, which places the UK between Gabon and Guinea (or somewhere around there) in the drop-down list, making it v diff to find. But this is easily sorted. Just manually move that line by editing the list in the file countries.php in wp-content/plugins/listo/modules/. Problem solved. Great plugin.
2020 年 5 月 11 日
Excellent and useful plugin, unfortunately list countries are not accurately by alphabetical order.
Thanks to the community, add this to you function.php and it will work like a charm.
function wpcf7_listo_ordered( $data) {
sort($data);
return $data;
}
add_filter( ‘wpcf7_form_tag_data_option’, ‘wpcf7_listo_ordered’, 11, 1 );
2019 年 5 月 21 日
Thank you so much for making this plugin.
2017 年 11 月 29 日
Have a lot of default lists, but i couldn’t customize with my own lists
參與者及開發者
變更記錄
1.9
- New list module:
emoji_flags
— Unicode emoji flag sequences - Introduces the
Listo_DataList
class and thedatalist
shortcode. - Adds the
telephone_country_codes
andtelephone_country_codes_noflag
data list types. - Adds utility methods to the
countries_a2a3
andtelephone_country_codes
list modules.
1.8
- Updates country names in modules/countries.php.
- Adds support of the
orderby
andorder
options tolisto()
. - Adds modules/countries-a2a3.php as the mapping table of ISO 3166-1 Alpha-2 and Alpha-3 codes.
- Adds modules/telephone-country-codes.php as the list of ITU-T E.164 country calling codes.
- Requires WordPress 6.4+.