Maps for WP

Description

Add a customized Yandex maps to your WordPress posts and/or pages quickly and easily with the supplied shortcode. Also adds a Metabox in admin panel when editing posts or custom pages or pages.

Adds Yandex map with one point

[MapOnePoint id=”” lat=”” lon=”” zoom=”” h=”” img=””] – Adds Yandex map with one point.

All parameters are not required

  • “id” – Required only when the shortcode on the page [MapOnePoin] used two or more times.
  • “lat” and “lon” – latitude and longitude of the point. The separator dot. If not specified the plugin will try to get it from custom fields of the current page.
  • “zoom” – zoom the map. A value from 1 to 18. If not specified the plugin will try to get it from settings Maps for WP.
  • “h” – map height in pixels. Default 450.
  • “img” – url of the image point (with http://). If not specified the plugin will try to get it from settings Maps for WP.

Example:

[MapOnePoint id="m1" img="http://site.ru/point.png"]
[MapOnePoint id="m2" lon="55.75197479670444" lat="37.617726067459024" zoom="5"]

Incorrectly:

[MapOnePoint id="m1" img="site.ru/point.png"]
[MapOnePoint id="m1" lon="55,75197479670444" lat="37,617726067459024" zoom="19"]

Adds Yandex map with many points

[MapManyPoints h=”” posttype=”” img=””] – Adds Yandex map with many points.

The plugin gets the coordinates from a custom page fields, records, pages, or custom page, specified in the parameter posttype using meta_query. If custom field is empty – the page is excluded from the query.

It is important! Shortcode [MapManyPoints] not used on the page more than once.

  • “h” – map height in pixels. Default 450.
  • “posttype” – Post type. The separator comma. Default post,page.
  • “img” – url of the image point (with http://). If not specified the plugin will try to get it from settings Yandex Maps 7.

Example:

[MapManyPoints]
[MapManyPoints h="500" posttype="post,page,myposttype" img="http://site.ru/point.jpg"]

Incorrectly:

[MapManyPoints h="500px" posttype="post, page, myposttype" img="site.ru/point.jpg"]

Screenshots

  • screenshot-1.png

Installation

This section describes how to install the plugin and get it working.

  1. Upload the entire yandex-maps-for-wp folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Yandex Maps->Settings screen to configure the plugin
  4. Add the shortcode ([MapOnePoint] or [MapManyPoints]) to the page topic

FAQ

Is it possible for one page to contain 2 of the shortcode [OneManyPoints]?

Yes. These shortcodes can be an unlimited number. Provided that the parameters ‘id’ are different.

Is it possible for one page to contain 2 of the shortcode [MapManyPoints]?

No.

Reviews

отстой

Не дает возможности ввести свои данные

Read all 2 reviews

Contributors & Developers

“Maps for WP” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Maps for WP” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • First relise.

1.0.1

  • Fixed a bug in which maps appear at the top of the page.

1.0.2

  • Fixed plugin settings.