Stellar Places is an intuitive plugin for easily creating, managing and displaying locations using Google Maps.
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).
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!
- 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
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.
A very special thank you to our plugin translators:
Jacques Soulé (French) – http://wordpress-pour-vous.com/
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.
- 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.
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?
- 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’.
- 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.
- 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/templatesdirectory of the plugin. However, in your theme you can create a
/stellar-placesdirectory 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/templatesdirectory in the plugin that contains a file called
info-window.html. This file contains all of the code used to render the content of the popups. You can create a
/stellar-placesdirectory in your theme and copy over the
info-window.htmlfile 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?
Colaboradores y desarrolladores
Este software es de código abierto. Las siguientes personas han contribuido a este plugin.Colaboradores
Registro de cambios
- Enhancement: Added ability to set a global custom icon.
- Testing: Compatible with WordPress 5.5.
- Added ability to set custom icons on a per-category and per-post basis.
- Fix issue where file name case was causing a 404.
- Added support for custom location-based queries.
- Fixed issue with plugin build.
- Minor code updates and fixes.
- Updated “Tested up to” to WordPress version 5.4
- Implemented REST API support.
- General code clean up and maintenance.
- Bug fix to enable switching map types in the shortcode.
- Added settings page
- Added ability to supply a Google Maps API key.
- Fixed bug where infoWindow wasn’t defined.
- Fixed bug that prevented plugin from being activated.
- Made the location category taxonomy public.
- Updated code to use the new
get_post_types_by_support()function in WordPress 4.5
- 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.
- 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.
- 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.
- Initial public release