Kumarrishikesh12 Allcountries-Allstates-AllCity

Description

Full user guide with tables: Settings Kumarrishikesh12 Allcountries-Allstates-AllCity How to Use tab in WordPress Admin.

Add dependent location dropdowns anywhere on your site:

Country State City

Select India and all Indian states appear in the State dropdown.
Select Gujarat and all Gujarat cities appear in the City dropdown.
Select United States all 50 states select California Los Angeles, San Francisco, San Diego…

What makes this plugin different

  • Works without Contact Form 7 — use [kumarrishikesh12_location_dropdown] on any page, post, Elementor / Gutenberg block or widget. Contact Form 7 support is optional, not required.
  • Type to search every field: type ind for India, guj for Gujarat, ahm for Ahmedabad. Keyboard / + Enter works too.
  • Per-field settings in Settings Kumarrishikesh12 Allcountries-Allstates-AllCity: Label, Placeholder, Required (Yes/No, shows *) and Note (helper text under the field) for Country, State and City separately.
  • All 194 countries have at least their major cities. Full State lists for 29 countries (India, US, Canada, UK, Australia, Pakistan, Bangladesh, Germany, France and more). Countries with no states skip State and fill City directly.
  • 100% free, no PRO version, no paywall, no trial. All features in the plugin itself.
  • No database, no API, no account. All country / state / city data is bundled in the plugin and works offline. Lightweight — about 33 KB zipped.
  • Multiple dropdown sets on the same page work independently.

Shortcode

[kumarrishikesh12_location_dropdown]

With options:

[kumarrishikesh12_location_dropdown default_country="IN" default_state="GJ" default_city="Ahmedabad"]

[kumarrishikesh12_location_dropdown submit_button="yes" button_text="Submit"]

Only one dropdown — Country only:

[kumarrishikesh12_location_dropdown fields="country"]

Or Country + State only: [kumarrishikesh12_location_dropdown fields="country,state"]

Or hide one field: [kumarrishikesh12_location_dropdown show_city="no"]

[kumarrishikesh12_location_dropdown country_required="yes" state_required="yes" city_required="no" country_note="Select your country" state_note="Select state after country" city_note="Select city after state"]

[kumarrishikesh12_location_dropdown searchable="no"] — plain dropdowns, no type-to-search.

[kumarrishikesh12_allcountries_allstates_allcity] also works as an alias for `[kumarrishikesh12_location_dropdown]`.

Attributes: id, class, required (yes/no, fallback for all three fields), country_required, state_required, city_required, country_note, state_note, city_note, searchable (yes/no), show_labels (yes/no), country_label, state_label, city_label, country_placeholder, state_placeholder, city_placeholder, default_country, default_state, default_city, country_name, state_name, city_name, submit_button (yes/no), button_text, form_action, form_method.

Field names are kumarrishikesh12_country, kumarrishikesh12_state, kumarrishikesh12_city by default. Country and State send codes like IN / GJ, City sends the name like Ahmedabad.

Contact Form 7

Do not put [kumarrishikesh12_location_dropdown] inside a CF7 form. Instead paste these 3 lines into your CF7 form editor. Use [select* ...] for a required field, [select ...] for optional:

`

Country *
[select* kumarrishikesh12-country class:kumarrishikesh12-country-field include_blank “Select Country”]
State *
[select* kumarrishikesh12-state class:kumarrishikesh12-state-field include_blank “Select State”]
City
[select kumarrishikesh12-city class:kumarrishikesh12-city-field include_blank “Select City”]
`

Then use [kumarrishikesh12-country], [kumarrishikesh12-state], [kumarrishikesh12-city] in the Mail tab.

Screenshots

Installation

  1. Upload the kumarrishikesh12-allcountries-allstates-allcity folder to /wp-content/plugins/, or upload the zip in Plugins Add New Upload Plugin.
  2. Activate the plugin.
  3. Use the shortcode below, or the Contact Form 7 fields below. Optional: go to Settings Kumarrishikesh12 Allcountries-Allstates-AllCity to set the default country, Required and Notes.

FAQ

Does it need an API key or Contact Form 7?

No to both. All data is bundled in assets/js/kumarrishikesh12-data.js, and the shortcode works on any page without CF7.

Does it need a database table?

No. No tables, no external requests.

Is there a PRO version?

No. Every feature in this plugin is free and included.

Can I add / change a city?

Yes — edit assets/js/kumarrishikesh12-data.js, find e.g. "IN-GJ": [...] and add the city name inside the list. Keep the quotes and commas.

Why is State disabled at first?

State stays disabled until a country is chosen, and City stays disabled until a state is chosen. That is the dependent behaviour. Countries with no states skip State and fill City directly.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Kumarrishikesh12 Allcountries-Allstates-AllCity” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

4.0.1

  • Renamed to Kumarrishikesh12 Allcountries-Allstates-AllCity (new slug kumarrishikesh12-allcountries-allstates-allcity), as chosen by the author. No functional changes from 4.0.0. Shortcode, prefix and settings are unchanged.

4.0.0

  • Renamed to Kumarrishikesh12 Allcountries-Allstates-AllCity (new slug kumarrishikesh12-allcountries-allstates-allcity) at the request of the WordPress.org Plugin Review Team. All code prefixes renamed to kumarrishikesh12_ (at least 4 characters), shortcode is now [kumarrishikesh12_location_dropdown], settings option is now kumarrishikesh12_settings. No functional changes from 3.1.1. Note: settings from the old version will reset to defaults, and pages using the old shortcode need updating to the new shortcode.

3.1.1

  • Plugin Check fixes: removed GUIDE.md from the plugin zip (the guide is now only in the “How to Use” tab in WordPress Admin — the file triggered an “unexpected markdown file” warning), and marked the tab-navigation read as read-only so Plugin Check no longer flags it for nonce verification. No functional changes from 3.1.0.

3.1.0

  • New “How to Use” tab on Settings Kumarrishikesh12 Allcountries-Allstates-AllCity — the full user guide (shortcodes, options, Contact Form 7, FAQ, troubleshooting) is now readable inside WordPress Admin, no file to open. Also linked from the Plugins page.

3.0.0

  • Added a full user guide (GUIDE.md, included in the plugin zip): quick start, shortcode table, all options, Contact Form 7, Settings, FAQ and troubleshooting. No functional changes from 2.1.2.

2.1.2

  • Version bump only — same code as 2.1.1, new file name so the new build can’t be mixed up with the old 2.0.0 zip.

2.1.1

  • Version bump only — same code as 2.1.0, so WordPress / cache can tell the new build apart.

2.1.0

  • Single-field shortcodes: [kumarrishikesh12_location_dropdown fields="country"] shows Country only, fields="country,state" shows Country + State, or use show_country="no" / show_state="no" / show_city="no". In Contact Form 7, just add only the field(s) you need.

2.0.0

  • Version bump to 2.0.0. No functional changes from 1.2.1.

1.2.1

  • Plugin Check fixes: escaped the required-field * and required attributes, removed discouraged load_plugin_textdomain(), added languages folder, shortened the short description to under 150 characters, reduced tags to 5.

1.2.0

  • Per-field Label, Placeholder, Required and Note settings for Country, State and City.
  • Standalone form validation for required fields.
  • Searchable dropdowns (type to filter).

1.1.0

  • Searchable dropdowns — type to filter Country / State / City.

1.0.0

  • First release.