The plugin adds the ability to select cities, unique pages are created with a unique url for each city. This allows you to uniqueize content for search engines.
Installing and configuring the plugin
How to sort cities in plugin
How to create an additional field for the city in the plugin
Extended version of the plugin
Advantages of the extended version of the plugin:
– Woocommerce support
– Support for subdomains
Subscribe to our Telegram channel
[select_city] – the main shortcode for embedding the plugin in the frontend of the site. Displays the currently selected city, as a link. When clicked, a city selection window appears. Also, in the shortcode there is a pop-up window that confirms the city.
[city] – displays the name of the currently selected city in the nominative case (Moscow). If for some reason the selected or requested city is not found in the database, it will display an empty value.
[widget_city] – displays the name of the currently selected city in the nominative case (Moscow). Unlike [city], if the city is not found in the database, it will display “In Russia”.
[city_padej1] – the name of the currently selected city in the prepositional case, taken from the corresponding field in the admin panel.
[city_padej2] – the name of the currently selected city in the dative case, taken from the corresponding field in the admin panel.
[city_padej3] – the name of the currently selected city in the genitive case, taken from the corresponding field in the admin panel.
[city_field] – universal shortcode, with it you can display any city meta, for example, you can add an additional field using the ACF plugin and display it in the template. Usage: [city_field field=”field name”]
[city_content] – this is a content shortcode that allows you to display any arbitrary content depending on the specified city. Usage: [city_content city=”moskva”]Content for the city of Moscow[/city_content]
[city_phone] – phone number of the currently selected city, taken from the corresponding field in the admin panel. You can, for example, insert it into a header and the phone will change when the city changes.
[city_address] – address of the currently selected city, taken from the corresponding field in the admin panel. Similarly, the phone can be inserted into contacts, for example, and it will change depending on the selected city.
[cities_addon_contacts] — shortcode, displays data from the “Additional points” block, you can edit the html and output style by copying the templates /cities_addon_contacts.php file to belingogeo, in your theme folder.
Copy the templates folder to your theme folder, rename the folder to belingogeo
Now, the whole appearance of all city selection pop-ups and widgets can be customized in your theme, in the belingogeo folder
Belingo.GeoCityin your wordpress site if it is not activated already.
- Place shortcode [select_city] anywhere on your website page.
“belingoGeo” 是开源软件。 以下人员对此插件做出了贡献。贡献者
- Fixed incorrect status of non-excluded entry in Ajax
- Added the ability to paginate in the sitemap (for sites with a large amount of material)
- Added new shortcodes [city_field] and [city_content]
- Added ACF support
- Minor bug fixes
- Fixed redirect on init page and on change city
- Fixed redirect when city is selected
- Fixed category nesting in custom taxonomy
- Fix notice errors
- Fix taxonomy fo custom post types
- Fix xml sitemaps
- Added support for Custom Post Types
- First release.