Geo Directory Location Manager WordPress Plugin
1500 CFA
- 1 an de mises à jour
- Nouvelle version gratuite
- Utilisation illimitée du domaine
- Télécharger Scanné par Norton & McAfee
- Vous recevrez des fichiers intacts et non modifiés.
- Nous achetons et téléchargeons auprès des auteurs originaux.
- Le même produit que les offres du vendeur sur leur site officiel.
- 100 % exempt de virus / logiciels malveillants / scripts malveillants / porte dérobée
- Satisfaction ou remboursement garanti à 100 %
Description
Geo Directory Location Manager WordPress Plugin
Introduction
Votre annuaire peut utiliser le Gestionnaire d’emplacements pour ajouter des annonces à des villes autres que votre emplacement par défaut. Il s’agit d’un outil important si vous souhaitez que votre annuaire comprenne plusieurs villes.
Pour en savoir plus : https://wpgeodirectory.com/downloads/location-manager/
Installation
Préparation
Assurez-vous que les plug-ins suivants sont installés avant de commencer.
Installation
- Téléchargez l’addon depuis votre compte.
- Installez l’addon publicitaire.
Paramètres
URL Settings
Home page should go to
Choose where links to the home page should redirect.
Archive urls
Choose whether or not the location should be added to the archive page URL.
Archive urls on listing page
Choose how the location should be added to the archive URLs on the listing page.
Enable locations
Choose the options for locations available to your site users.
- Enable Default – Users will not be able to change the option.
- Enable Multi – users can place the pin on the map, and new locations will be added as needed.
- Enable Selected – select specific locations to present as options to your users.
Enable neighborhoods?
If enabled, new neighborhoods can be added on the Cities tab.
Add listing form
Disable address autocomplete?
Some sites want to allow freeform entry of street address for the convenience of users. Select this option to disable autocomplete.
Show all locations in dropdown?
This is useful if you have a small directory but can break your site if you have many locations
Disable set address on map from changing address fields
This is useful if you have a small directory and you have custom locations or your locations are not known by the Maps API and they break the address. (highly recommended not to enable this)
Disable move map pin from changing address fields
This is useful if you have a small directory and you have custom locations or your locations are not known by the Google API and they break the address. (highly recommended not to enable this)
Change the Default Location
If you do not have the Location Manager installed, then you can set or change the default location in the settings at:
GeoDirectory – Settings – General – Default Location
Once the Location Manager addon is installed, that subtab option will disappear. Instead you can select from the cities in your location database to choose which one should be the default location.
To change the default location with the Location Manager addon installed:
- Visit GeoDirectory – Settings – Locations (tab) – Cities (subtab)
- Look for the default location column
- Select the radio button next to the city you want to be the default location
- Set the radio, and confirm the selection
If the default location you want does not yet exist, you can also add it from the same page. Once you have added it, it will appear in the list and you can set it as default.
Cities (subtab) – Add City
Remove Country and/or Region from Listing, CPT, and Location URLs
When your directory is using default country and/or region it is possible to remove country and/or region from some URLs.
To set this up configure the following options in the Locations tab advanced options.
Other
Load more limit
Load more locations after this count has been reached.
Disable term auto count?
On shared hosting with lots of listings, saving a listing may take a long time becasue of auto term counts, if you disable them here you should manually run the GD Tools > Location category counts, often until you can upgrade your hosting and re-enable it here, otherwise your location term and review counts can be wrong.
Location Data
Each location has a set of fields where you can add information specific to that location.
Meta Title
The Meta Title of the page for this location.
Meta Description
The Meta Description of the page for this location.
Location Description
Each location has a Location Description, so, there are lots of ways to add unique content by filling in each location description with unique content about the location.
Enter information about the location. The field supports HTML. This field is displayed with the Location Description Widget or Shortcode.
To enable shortcodes in this field, add this snippet:
add_filter('geodir_location_description', 'do_shortcode',10,1);
In this example this is the City of Maple Shade
Location Description widget showing on the location page.
Featured Image
The featured image for the location.
Image Tagline
The tagline for the featured imaged.
Add Location
Countries
Regions
Cities
Neighborhoods
Neighborhoods will also show up in the Near Search when autocomplete is enabled, as shown in the image below:
Merge and Delete Locations
In the cities subtab you can find links to edit your locations.
Design
Navigation
To add the “Change Location” feature to your menu:
- Open WordPress – Appearance – Menus
- Select the menu you want to edit
- Find and select GeoDirectory Endpoints in the menu options. (If you do not see it, then open Screen options in the top
- left and select it).
- Scroll to the bottom of GeoDirectory Endpoints to find Location Switcher
- Select Change Location and click “Add to menu”
- Save the menu
Widgets
GD > Location Description
Each location type has a Location Description field. Add your HTML into the Location Description field, and then use the widget to display that content to site visitors.
Widget Settings
GD > Location Switcher
GD > Listings
See: gd_listings
Shortcodes
[gd_location_description title="GD Location Description"]
This shortcode can be used on the location page template:
It shows the contents of the Location Description field. For example, here it is showing the Location Description for Maple Shade (City) on the location page for Map Shade city (/location/united-states/new-jersey/maple-shade).
[gd_location_switcher title="GD Location Switcher"]
[gd_locations title="GD Locations"]
Once Location Manager is installed, the gd_listings shortcode and widget both can be filtered for one location.
Example:
[gd_listings title="GD Listings Featured Places for Maple Shade Township" post_type="gd_place" show_featured_only="1" country="united-states" region="new-jersey" city="maple-shade-township"]
These are the additional options in the shortcode builder. Note here that the slugs used are for one city location, with the correct region and country slug to match that city location.
And the output
Note: Cette fonctionnalité n’est pas compatible avec l’option « Activer le filtre de localisation » qui filtrera davantage les résultats en fonction de l’emplacement de la page actuellement consultée, ce qui donnera probablement 0 résultat.
Fusionner les emplacements
À l’intérieur de l’écran des pays/régions/villes, vous pouvez utiliser la case à cocher pour en sélectionner deux ou plus, puis choisir « fusionner » dans la liste déroulante des actions en bloc.
La fusion vous donnera la possibilité de choisir où les annonces doivent se retrouver. Vous pouvez fusionner 100 villes en une seule et cela déplacera toutes les listes et changera leur ville, leur région et leur pays en même temps.
Il est recommandé de fusionner les lieux en règle générale et d’éviter même d’envisager de les supprimer. La raison est d’éviter même la possibilité de supprimer un lieu avec des annonces, car cela rendrait les annonces « orphelines ».
Choisir le sous-onglet
Pays/Région/Ville Sélectionnez un ou plusieurs emplacements
À partir des actions en bloc choisissez Fusionner
Lorsque la page se recharge, choisissez l’emplacement « destination ». Toutes les annonces seront fusionnées à cet endroit.
Fait
Personnaliser
Pour plus d’informations sur la personnalisation avec des extraits CSS et PHP, consultez la documentation sur la personnalisation.
Sujets
Exemple d’extrait pour ajouter une région à la barre de recherche GD en tant que liste déroulante – Sujet du forum
Masquer les suggestions de champ proche
Extraits CSS pour masquer les suggestions du champ de recherche, soit toutes, soit uniquement les suggestions IN : https://wpgeodirectory.com/support/topic/hide-all-in-locations-from-dropdown/#post-493566
Données de localisation
Les pages Emplacement et Catégorie + Emplacement disposent de données de localisation qui peuvent être utilisées à d’autres fins.
Voici quelques exemples de pages/URL contenant des données de localisation :
/location_page_slug/united-states/pennsylvania/phildelphia/ /cpt_slug/category_base/attractions/united-states/pennsylvania/phildelphia/
Ce qui suit sont des instructions PHP conditionnelles qui peuvent être utilisées pour récupérer les données de localisation sur ces pages afin de les utiliser dans vos propres personnalisations.
Exemples:
geodir_is_page( 'location' ) – Determines whether current page is location page. geodir_location_get_current( 'location' ) – Current location. Current Country or Region or City or Neighbourhood. Depends on current location type. geodir_location_get_current( 'location_slug' ) – Current location. Current Country slug or Region slug or City slug or Neighbourhood slug. Depends on current location type. geodir_location_get_current( 'id' ) – Location id. Only if city is set. geodir_location_get_current( 'type' ) – Location type. One of from "country, region, city, neighbourhood, me, gps". geodir_location_get_current( 'is_default' ) – Is default location. Only if city is set. geodir_location_get_current( 'country' ) – Country name. Ex: United Kingdom. geodir_location_get_current( 'country_slug' ) – Country slug. Ex: united-kingdom. geodir_location_get_current( 'region' ) – Region name. Ex: Greater London. geodir_location_get_current( 'region_slug' ) – Region slug. Ex: greater-london. geodir_location_get_current( 'city' ) – City name. Ex: London geodir_location_get_current( 'city_slug' ) – City slug. Ex: london. geodir_location_get_current( 'neighbourhood' ) – Neighbourhood name. Ex: Camden Town. geodir_location_get_current( 'neighbourhood_slug' ) – Neighbourhood slug. Ex: camden-town. geodir_location_get_current( 'latitude' ) – Latitude. Only if city or neighbourhood or gps/me is set. Ex: 51.4587232758 geodir_location_get_current( 'longitude' ) – Longitude. Only if city or neighbourhood or gps/me is set. Ex: -0.1956555088
geodir_location_get_current( ‘location’ ) – Current location. Current Country or Region or City or Neighbourhood. Depends on current location type.
if you are on /country/region//city page thenCity name
if you are on /country/region/page then
Region name
if you are on /country/page then
Country namegeodir_is_page( ‘location’ ) == ‘Philadelphia’ – for name
similarly you can filter by geodir_location_get_current( ‘country’ ) or geodir_location_get_current( ‘region’ ) or geodir_location_get_current( ‘city’ )
if you want to do it by particular country/region/city
ex: geodir_location_get_current( ‘country’ ) == ‘United Kingdom’
ex: geodir_location_get_current( ‘country_slug’ ) == ‘united-kingdom’
geodir_location_get_current( ‘region’ ) == ‘Greater London’
geodir_location_get_current( ‘region_slug’ ) == ‘greater-london’
geodir_location_get_current( ‘city’ ) == ‘London’
geodir_location_get_current( ‘city_slug’ ) == ‘london’For an example of using an array, see this topic.
Get Support
Get support on our forum, fnd out more here: https://wpgeodirectory.com/docs-v2/v2/support/
FAQ – Frequently Asked Questions
How can I translate the country slug?
See this document: https://wpgeodirectory.com/docs-v2/translation/country/
How do I add my locations?
Locations should not be added manually.
In the case that you are starting a new directory and want to limit your directory to one region or country and perhaps several cities, here is how to go about setup:
- Visit the Locations tab and enable Multi Countries, Regions, and Cities
- Go to Places – Add New and add a listing in each of the Countries, Regions, and Cities that you want to use
- Return to the Locations tab and choose “Selected” Countries, Regions, and Cities, selecting for each the locations you want to use
Why can’t I add locations manually?
If you name the country/region/city even the slightest bit different from the Map API you are using, then a new country/region/city will be created instead of the one you are using. Locations with custom names must be maintained manually by merging new duplicate locations into them, thereby moving the listings in those locations into the manually created location.
How can I manage custom locations?
Il est possible de gérer des emplacements personnalisés avec Location Manager.
La façon de procéder est de créer l’emplacement de votre ville personnalisée, puis de fusionner d’autres villes dans cet emplacement personnalisé.
Voir cette partie de la documentation ci-dessus sur la modification des emplacements
L’un des problèmes de cette approche est que l’emplacement personnalisé n’est pas renvoyé par l’API de carte, de sorte que les nouvelles listes peuvent être situées dans des villes précédemment fusionnées. Pour cette raison, les emplacements personnalisés ne sont pas une solution courante. Nous prévoyons de créer un addon pour faciliter la gestion des emplacements personnalisés, mais nous n’avons pas de calendrier pour cela.