Descripción
Stellar Places is an intuitive plugin for easily creating, managing and displaying locations using Google Maps.
How?
Using this plugin is simple:
- Install the plugin
- Activate the plugin
- In the WordPress admin, click on ‘Places’
- Click on ‘Add New’ and create a new place.
Once you have added a new place, you will be able to access the listing view and single location view, both of which will automatically have maps associated with them. If you wish to insert a map in a custom location, just use the [stellar_places_map]
shortcode (see FAQ section for more details).
Why?
There are plenty of Google Maps plugins for WordPress, but very few actually use custom post types to manage locations. Additionally most don’t have a simple and intuitive interface. Let’s take a look at some use cases where Stellar Places shines:
-
Store Locator – If you own a business that has multiple physical locations, this plugin will automatically feature a list of all store locations as well as provide a page for each store location, which is good for local SEO.
-
Local Events – If your organization sponsors or holds local events, this plugin makes it easy to display them all on a map, or even display subsets based on categories.
Let us how know how you are using Stellar Places!
Features
- Live map preview
- Drag and drop marker relocation
- Location pages for better SEO
- Unlimited locations and maps
- Mobile friendly, responsive maps
- Easy map embeds via shortcode
- Clean, well written code that won’t bog down your site
Upcoming Features
If there is a feature or integration that you are interested in, please let me know. What I build will be entirely based on what my users need, so let your voice be heard by using the support forum or creating a new issue on GitHub.
Banner Disclaimer: The icon used in the banner was designed by alecive. It has been altered and used with the author’s permission under the Creative Commons Attribution-ShareAlike license.
Special Thanks
A very special thank you to our plugin translators:
Jacques Soulé (French) – http://wordpress-pour-vous.com/
Capturas
Instalación
Prerequisites
If you don’t meet the below requirements, I highly recommend you upgrade your WordPress install or move to a web host that supports a more recent version of PHP.
- Requires WordPress version 4.5.0 or greater ( if you are running an older version of WordPress, version 1.0.3 or earlier of this plugin will support WordPress 3.5)
- Requires PHP version 5.2 or greater ( PHP version 5.2.4 is required to run WordPress version 3.2 )
Install via Search
- In your WordPress admin, go to ‘Plugins’ and then click on ‘Add New’.
- In the search box, type in ‘Stellar Places’ and hit enter. This plugin should be the first and likely the only result.
- Click on the ‘Install’ link.
- Once installed, click the ‘Activate this plugin’ link.
Install via Direct Download
- Download the .zip file containing the plugin.
- In the WordPress admin, click on ‘Plugins’ and then ‘Add New’
- On the resulting ‘Install Plugins’ page, find the ‘Upload’ link at the top and click on it.
- Click on the ‘Choose File’ button and point your machine to the .zip you initially downloaded.
- Click ‘Install Now’
- After the install is complete, click the ‘Activate Plugin’ link.
Compatibility
- Currently, there are no known conflicts with other WordPress plugins. If you believe you’ve found one, please let us know on the support forum
- The current version of this plugin is only compatible with WordPress 4.5 or greater.
- Versions 1.0 to 1.0.3 of this plugin are compatible with WordPress 3.5 up until, but not including, version 4.5.
Preguntas frecuentes
-
How do I insert a map?
-
Just use the
[stellar_places_map]
shortcode in your post content, or even in a text widget. -
What options are available with the [stellar_places_map] shortcode?
-
HTML Attributes
- id – The HTML id attribute for the wrapping div.
- class – The HTML class attribute for the wrapping div.
- width – Sets the width of the map. Can be defined in any standard CSS measurement (e.g. 100%, 600px). Defaults to ‘100%’.
- height – Sets the height of the map. Should be defined in pixels (i.e. 600px). Defaults to ‘400px’.
Query Parameters
- post_type – Limit items displayed to a specific post type. Only supported post types can be displayed.
- taxonomy – Sets the taxonomy to be used in conjunction with the ‘term’ attribute. Defaults to ‘stlr_location_categories’.
- term – Limit items displayed to a specific taxonomy term. Requires the ‘taxonomy’ attribute to be set. A term slug should be provided.
- category – An alias for ‘term’.
- post_id – Limit items displayed to a specific post. This will effectively display a single marker for a specific location on the map.
Map Settings
- lat – The default latitude for the map center, when no markers are displayed.
- lng – The default longitude for the map center, when no markers are displayed.
- mapTypeId – Sets the map type for the Google Map. Options are:
- roadmap – Displays the default road map view. This is the default map type.
- satellite – Displays Google Earth satellite images.
- hybrid – Displays a mixture of normal and satellite views.
- terrain – Displays a physical map based on terrain information.
- scrollwheel – Defaults to ‘false’, which prevents the map from zooming when scrolled over.
- zoom – The default zoom for the map, when no markers are displayed. Required if no markers are being displayed. Zoom levels are integers between 1 and 20.
- minzoom – The minimum zoom level which will be displayed on the map. Zoom levels are integers between 1 and 20.
- maxzoom – The maximum zoom level which will be displayed on the map. Zoom levels are integers between 1 and 20.
- infowindows – Defaults to ‘true’, which enables the display of popups when clicking on map markers.
Example usage of the shortcode options:
[stellar_places_map post_id="29" maxzoom="14" height="250px" width="250px" mapTypeId="hybrid"]
-
How can I customize the content that appears on the single location pages and on the post type archive page?
-
The Stellar Places plugin uses templates to control what appears in these areas. By default, the templates used are found in the
/includes/templates
directory of the plugin. However, in your theme you can create a/stellar-places
directory and, if present, the plugin will load templates from there instead. If you wish to customize the templates found in the plugin, just copy the files over to your theme and then start editing! -
Can I customize the content in the popups that appear when clicking on map markers?
-
Absolutely. There is an
/includes/templates
directory in the plugin that contains a file calledinfo-window.html
. This file contains all of the code used to render the content of the popups. You can create a/stellar-places
directory in your theme and copy over theinfo-window.html
file and edit it to fit your needs. The file uses the Underscore.js template engine and is a client-side template. -
Can I create a custom location based query?
Reseñas
Colaboradores y desarrolladores
Este software es de código abierto. Las siguientes personas han contribuido a este plugin.
ColaboradoresTraduce “Stellar Places” a tu idioma.
¿Interesado en el desarrollo?
Revisa el código, echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
1.3
- Enhancement: Added ability to set a global custom icon.
- Security: Updated JavaScript dependencies.
- Testing: Compatible with WordPress 5.5.
1.2
- Added ability to set custom icons on a per-category and per-post basis.
1.1.4
- Fix issue where file name case was causing a 404.
1.1.3
- Added support for custom location-based queries.
1.1.2
- Fixed issue with plugin build.
1.1.1
- Minor code updates and fixes.
- Updated “Tested up to” to WordPress version 5.4
1.1
- Implemented REST API support.
- General code clean up and maintenance.
1.0.7
- Bug fix to enable switching map types in the shortcode.
1.0.6
- Added settings page
- Added ability to supply a Google Maps API key.
- Fixed bug where infoWindow wasn’t defined.
1.0.5
- Fixed bug that prevented plugin from being activated.
1.0.4
- Made the location category taxonomy public.
- Fixed bugs related to updated JavaScript dependencies in WordPress 4.5.
- Updated code to use the new
get_post_types_by_support()
function in WordPress 4.5
1.0.3
- Updated readme to reflect compatibility with WordPress version 4.0.1
- Fixed bug in shortcode where setting ‘zoom’ wouldn’t work when markers were present.
1.0.2
- Added a ‘stellar_place’ filter for place objects.
- Made plugin translatable and added French translation.
- Allow post_type and posts_per_page parameters in Stellar_Places_Query to be overwritten.
- Use file_get_contents() instead of include() to output standalone HTML template from a file.
- Strip shortcodes from the location description rather than execute them.
- Added set ‘with_front’ to false for the place post type to keep urls clean.
- Added an upgrade routine.
1.0.1
- Fix the minzoom and maxzoom shortcode attributes (not previously working).
- Ensure map centers properly on window resize.
- Process shortcodes in the location description that appears in the map popups.
- Remove the div that wraps the map canvas to avoid complicating the CSS.
1.0.0
- Initial public release