Title: Custom Post Type to Map Store
Author: lriaudel
Published: <strong>Me 20, 2020</strong>
Last modified: Metheven 19, 2020

---

Search plugins

![](https://ps.w.org/cpt-to-map-store/assets/banner-772x250.png?rev=2309159)

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/cpt-to-map-store/assets/icon.svg?rev=2309159)

# Custom Post Type to Map Store

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

[Download](https://downloads.wordpress.org/plugin/cpt-to-map-store.1.1.0.zip)

 * [Details](https://cor.wordpress.org/plugins/cpt-to-map-store/#description)
 * [Reviews](https://cor.wordpress.org/plugins/cpt-to-map-store/#reviews)
 *  [Installation](https://cor.wordpress.org/plugins/cpt-to-map-store/#installation)
 * [Development](https://cor.wordpress.org/plugins/cpt-to-map-store/#developers)

 [Support](https://wordpress.org/support/plugin/cpt-to-map-store/)

## Description

The plugin allows to :

 1. Generate a [GEOJson](https://en.wikipedia.org/wiki/GeoJSON) feed from coordinates
    recorded in the sample posts.
 2. Display this feed on a map with a shortcode.

### Features

 * Mapping from a **Post Type** to generate a GeoJson feed of all posts.
 * Exposure this **Geojson feeds** on the WordPress Rest-API
 * Possibility to make a **template** for the map markers popup
 * Coordinate reading compatibility for :
    - a text field
    - an ACF Google Map field
    - an ACF field for the [ACF OpenStreetMap Fields](https://wordpress.org/plugins/acf-openstreetmap-field/)
      extension
 * Displaying a map by **shortcode of all points**.
 * Open Street Map put in **cache**

### Hook

#### The marker content

You can customize more finely the marker popup content.

Example:

    ```
    <?php
    function bindPopup_content_filter( $bindPopup_content, $post_id ) {
        return "Yeahhhhh";
    }

    add_filter( 'cpt_to_map_store_bindPopup_content', 'bindPopup_content_filter', 10, 2 );
    ?>
    ```

### Cache

This plugin works with [Tiles Proxy for OpenStreetMap](https://wordpress.org/plugins/osm-tiles-proxy/)
for put in cache the map tiles.

### Translations

 * English – default, always included
 * French

### Important Information !

Have fun

## Screenshots

 * [[
 * screenshot-1.png
 * [[
 * screenshot-2.png
 * [[
 * screenshot-3.png
 * [[
 * screenshot-4.png

## Installation

This section describes how to install the plugin and get it working.
 1. Upload `
cpt-to-map-store.php` to the `/wp-content/plugins/` directory 2. Activate the plugin
through the ‘Plugins’ menu in WordPress 3. In admin, Settings > CPT to Map Store

## FAQ

### What are the requirements?

 * Have a Post Type with Latitide and Longitude meta fields.
 * And add a custom fields (https://wordpress.org/support/article/custom-fields/,
   ACF plugin, Pods or others…)

## Reviews

![](https://secure.gravatar.com/avatar/2e71000db90d24bc6999e68672e18bd7781c138074f95c7b956f1f85d27ec46e?
s=60&d=retro&r=g)

### 󠀁[Good](https://wordpress.org/support/topic/good-5429/)󠁿

 [maelleweb](https://profiles.wordpress.org/maelleweb/) Me 21, 2020

Thanks for this work. It help me.

 [ Read all 1 review ](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/)

## Contributors & Developers

“Custom Post Type to Map Store” is open source software. The following people have
contributed to this plugin.

Contributors

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

“Custom Post Type to Map Store” has been translated into 1 locale. Thank you to 
[the translators](https://translate.wordpress.org/projects/wp-plugins/cpt-to-map-store/contributors)
for their contributions.

[Translate “Custom Post Type to Map Store” into your language.](https://translate.wordpress.org/projects/wp-plugins/cpt-to-map-store)

### Interested in development?

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

## Changelog

#### 1.1.0

 * Add the compatibility with the plugin “Tiles Proxy for OpenStreetMap” for put
   in cache the map tiles.

#### 1.0.3

 * Add the marker content filter `cpt_to_map_store_bindPopup_content`

#### 1.0.2

 * Fix error in engueue scripts in class-cpt-to-map-store-public.php
 * Fix Notice in functions.php
 * Fix js error in public.js

#### 1.0.1

 * Fix enqueue scripts and styles
 * Fix isset var
 * Add translate terms

#### 1.0.0

 * initial

## Meta

 *  Version **1.1.0**
 *  Last updated **6 years ago**
 *  Active installations **40+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **5.4.19**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/cpt-to-map-store/) and [French (France)](https://fr.wordpress.org/plugins/cpt-to-map-store/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/cpt-to-map-store)
 * Tags
 * [geojson](https://cor.wordpress.org/plugins/tags/geojson/)[map](https://cor.wordpress.org/plugins/tags/map/)
   [open street map](https://cor.wordpress.org/plugins/tags/open-street-map/)[openstreetmap](https://cor.wordpress.org/plugins/tags/openstreetmap/)
   [Store locator](https://cor.wordpress.org/plugins/tags/store-locator/)
 *  [Advanced View](https://cor.wordpress.org/plugins/cpt-to-map-store/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cpt-to-map-store/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cpt-to-map-store/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/lriaudel)