Title: LH Places
Author: shawfactor
Published: <strong>June 1, 2016</strong>
Last modified: April 2, 2017

---

Search plugins

![](https://ps.w.org/lh-places/assets/banner-772x250.jpg?rev=1428032)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/lh-places/assets/icon-256x256.png?rev=2766698)

# LH Places

 By [shawfactor](https://profiles.wordpress.org/shawfactor/)

[Download](https://downloads.wordpress.org/plugin/lh-places.zip)

 * [Details](https://wordpress.org/plugins/lh-places/#description)
 * [Reviews](https://wordpress.org/plugins/lh-places/#reviews)
 *  [Installation](https://wordpress.org/plugins/lh-places/#installation)
 * [Development](https://wordpress.org/plugins/lh-places/#developers)

 [Support](https://wordpress.org/support/plugin/lh-places/)

## Description

LH Places creates a cpt called a place, places have geographical information (eg
latitude and longitude) associated with them. Posts, pages, and others CPTS (eg 
events), can then be connected to a place and are searchable by location.

It also includes a shortcode that can be used to find posts or pages that are connected
to a nearby location, as well as a shortcode to add maps of various places to any
post object.

## Installation

 1. Upload the `lh-places` folder to the `/wp-content/plugins/` directory
 2. Install the WordPress Posts 2 Posts plugin
 3. Activate both plugins through the ‘Plugins’ menu in WordPress

## FAQ

### What could you use this for?

This plugin is part of the LocalHero project for member driven WordPress organisations
but as it is modular could be used for other things. Use your imagination

### How do I use the geolocation shortcode?

Place the short code [lh_places_geolocate] anywhere in the your post_content.m The
shortcode has one optional parameter call url. This is the url that the browser 
will request, when making its geolocated search. By default this will be the blog
url but if you wish to search a custom post type then use the url of the custom 
post type archive.

### How do I include maps of places on the front end?

Place the shortcode [lh_places_geomap] into your post_content. The shortcode takes
two options ‘p’ which is the post id of the place you wish to display or ‘post_parent’
which is the post id of the parent place of a set of places you may wish to display.
Please don’t use both.

### What post types can be linked to places?

by default posts and pages can have a place attached (se the post edit screen). 
To add (or remove) an additional post type you can use the lh_places_from_posttypes
filter which takes and returns the eligible post types. See plugin source.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“LH Places” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[Translate “LH Places” into your language.](https://translate.wordpress.org/projects/wp-plugins/lh-places)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/lh-places/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/lh-places/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/lh-places/) by [RSS](https://plugins.trac.wordpress.org/log/lh-places/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

**1.00 May 30, 2016*
 Initial release.

**1.01 May 31, 2016*
 Added Filter on post types

**1.02 March 30, 2017*
 Use isset

## Meta

 *  Version **1.02**
 *  Last updated **9 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **4.7.33**
 * Tags
 * [geo](https://wordpress.org/plugins/tags/geo/)[geolocation](https://wordpress.org/plugins/tags/geolocation/)
   [geotag](https://wordpress.org/plugins/tags/geotag/)[location](https://wordpress.org/plugins/tags/location/)
   [radius](https://wordpress.org/plugins/tags/radius/)
 *  [Advanced View](https://wordpress.org/plugins/lh-places/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/lh-places/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lh-places/reviews/)

## Contributors

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lh-places/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://lhero.org/plugins/lh-places/)