Περιγραφή
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.
Appearance customization
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
Εγκατάσταση
- Upload
belingogeo
to the/wp-content/plugins/
directory. - Activate
Belingo.GeoCity
in your wordpress site if it is not activated already. - Place shortcode [select_city] anywhere on your website page.
Κριτικές
Συνεισφέροντες & Προγραμματιστές
“belingoGeo” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.
ΣυντελεστέςΤο “belingoGeo” έχει μεταφραστεί σε 1 γλώσσα. Ευχαριστούμε τους μεταφραστές για τις συνεισφορές τους.
Μεταφράστε το “belingoGeo” στην γλώσσα σας.
Ενδιαφέρεστε για την ανάπτυξη;
Περιηγηθείτε στον κώδικα, ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών ανάπτυξης μέσω RSS .
Σύνοψη αλλαγών
1.7.2
- Quick fix for necritical bugs
1.7.1
- Fixed incorrect status of non-excluded entry in Ajax
1.7
- 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
1.6.5
- Fixed redirect on init page and on change city
1.6.4
- Fixed redirect when city is selected
1.6.3
- Fixed category nesting in custom taxonomy
1.6.2
- Fix notice errors
1.6.1
- Fix taxonomy fo custom post types
- Fix xml sitemaps
1.6
- Added support for Custom Post Types
1.5
- First release.