Title: WP Country
Author: andreyk
Published: <strong>2013-12-28</strong>
Last modified: 2016-04-16

---

Szukaj wtyczek

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

![](https://s.w.org/plugins/geopattern-icon/wp-country.svg)

# WP Country

 Autor: [andreyk](https://profiles.wordpress.org/andreyk/)

[Pobierz](https://downloads.wordpress.org/plugin/wp-country.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/wp-country/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/wp-country/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/wp-country/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/wp-country/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/wp-country/)

## Opis

To use the WP Country plugin in your theme or plugin add `global $wp_country;` into
your theme or plugin PHP file,
 then:

 * `$wp_country->countries_list()` is an array of country names
 * `$wp_country->dropdown()` prints or returns countries as dropdown HTML tag.
 * `$wp_country->name($alpha2)` returns the name of a country by it’s 2-character
   code.

Russian translation is available now.

## Instalacja

 1. Upload the `wp-country` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin.

## Najczęściej zadawane pytania

Advanced usage: `dropdown($blank, $echo, $args)`

  Parameters Description

 * _blank_: if not empty then `<option value=''>` will be added into dropdown list.
   Default: ”.
 * _echo_: prints the list if true else returns. Default: true.
 * _args_: an array of extra parameters. Default: `array('include' => array(), '
   exclude' => array(), 'name' => 'country', 'id' => '', 'selected' => array(), '
   multiple' => false)`.

  Description of `args` components

 * _include_, _exclude_: an array of country codes (alpha2) should be included into
   dropdown list or excluded from it.
 * _name_: `name` attribute of the SELECT tag.
 * _id_: `id` attribute (not displayed by default).
 * _class_: `class` attribute of the SELECT tag (empty by default).
 * _multiple_: enables multiple select.
 * _selected_: adds the `selected` attribute.

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„WP Country” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój
wtyczki.

Zaangażowani

 *   [ andreyk ](https://profiles.wordpress.org/andreyk/)

[Przetłumacz wtyczkę “WP Country” na swój język.](https://translate.wordpress.org/projects/wp-plugins/wp-country)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/wp-country/), sprawdź
[repozytorium SVN](https://plugins.svn.wordpress.org/wp-country/) lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/wp-country/)
przez [RSS](https://plugins.trac.wordpress.org/log/wp-country/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

 * 0.2 Add `class` parameter for dropdown list.
 * 0.1 Initial version.

## Meta

 *  Wersja **0.2**
 *  Ostatnia aktualizacja **10 lat temu**
 *  Włączone instalacje **90+**
 *  Wersja WordPressa ** 3.6 lub nowszej **
 *  Testowano do **4.5.33**
 *  Język
 * [English (US)](https://wordpress.org/plugins/wp-country/)
 * Tagi
 * [countries list](https://pl.wordpress.org/plugins/tags/countries-list/)[country](https://pl.wordpress.org/plugins/tags/country/)
   [dropdown](https://pl.wordpress.org/plugins/tags/dropdown/)[select](https://pl.wordpress.org/plugins/tags/select/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/wp-country/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

[Twoja opinia](https://wordpress.org/support/plugin/wp-country/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/wp-country/reviews/)

## Zaangażowani

 *   [ andreyk ](https://profiles.wordpress.org/andreyk/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/wp-country/)