-
Notifications
You must be signed in to change notification settings - Fork 17
wpgeo_map
Ben Huson edited this page May 29, 2013
·
10 revisions
<?php
$query = array(
'width' => $wp_geo_options['default_map_width'],
'height' => $wp_geo_options['default_map_height'],
'type' => $wp_geo_options['google_map_type'],
'polylines' => $wp_geo_options['show_polylines'],
'polyline_colour' => $wp_geo_options['polyline_colour'],
'align' => 'none',
'numberposts' => -1,
'posts_per_page' => -1,
'post_type' => 'post',
'post_status' => 'publish',
'orderby' => 'post_date',
'order' => 'DESC',
'markers' => 'large',
'markers' => 'large',
'offset' => 0,
'category' => null,
'include' => null,
'exclude' => null,
'meta_key' => null,
'meta_value' => null,
'post_mime_type' => null,
'post_parent' => null
);
?>```
## Parameters
**$query**
(array) List of query parameters. For a full list see [get_posts()](http://codex.wordpress.org/Template_Tags/get_posts).
_Default: Same as get_posts()_
**$options**
(array) (Optional) List of options. CUrrently not used.
## Return Value
Output is echoed.
## Examples
### Category Map
## Source File
wpgeo_map() is located in [includes/templates.php](https://github.com/benhuson/WP-Geo/blob/master/includes/templates.php)