开发者 | worldnomadmap |
---|---|
更新时间 | 2016年8月30日 23:30 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 4.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
nomad-world-map
folder to the /wp-content/plugins/
directoryAdd this shortcode [nwm_map]
to the page where you want to display the map.
You add the shortcode like you normally would, only this time you also need to define the map ID.
So if you want to show the maps with ids 1,4 and 5 you would add the following shortcodes.
[nwm_map id="1"]
[nwm_map id="4"]
[nwm_map id="5"]
Yes, just add the width and height as an attribute to the shortcode. [nwm_map height="500" width="500"]
You can add the id attribute to the [nwm_map id="3"]
shortcode. This will show the map with ID 3 on your page.
Make sure your theme doesn't use AJAX to navigate between pages, if so try to disable it. Also make sure there are no JavaScript errors on your site. Last thing you can try is to switch to another theme and disable other plugins and see if that fixes it.
You can set the zoom level like this. [nwm_map zoom="6"]
You can set the content type to either 'tooltip' or 'slider'. [nwm_map content="tooltip"]
If it's set to tooltip, it will remove the slider.
You can disable the lines between the markers [nwm_map lines="0"]
You can set the map type like this [nwm_map maptype="roadmap"]
other accepted values are 'satellite', 'hybrid' and 'terrain'.
If the zoom level, content type, lines or maptype are not set in the shortcode, the values from the general settings page will be used.
Yes, this short code [nwm_list id="1"]
will show the destination list for the map with id 1. If no id is set, it will default to 1.
Other shortcode options for the list:
[nwm_list id="1" dates="all"]
Show both the arrival and departure dates
[nwm_list id="1" dates="arrival"]
Only show the arrival dates
[nwm_list id="1" dates="departure"]
Only show the arrival dates
[nwm_list order="asc"]
or [nwm_list order="desc]
will change the sort order of the destination list
Make sure the blog post you search for is published, and that it matches exactly with the title you see in the blog post editor. Otherwise please open a support request in the support form.