[wp_geo_map]
In the WP Geo settings you can choose to show the map above the post, below the post or position manually in your post using the [wp_geo_map] shortcode. If you select ‘manually’ but don’t use a shortcode, the map will not display within your post.
Available parameters are:
- width
- height
- align (defaults to ‘none’)
- lat
- long
- type (defaults to ‘G_NORMAL_MAP’)
[wpgeo_longitude] and [wpgeo_latitude]
You can display the longitude and latitude values in your posts using [wpgeo_longitude] and [wpgeo_latitude].
[wpgeo_map_link]
[wpgeo_mashup]
You can add extra parameters to this shortcode. For example:
[wpgeo_mashup height="500px" width="100%"]
Available parameters are:
- width (defaults to WP Geo setting)
- height (defaults to WP Geo setting)
- type (defaults to WP Geo setting)
- polylines (defaults to WP Geo setting)
- polyline_colour (defaults to WP Geo setting)
- align (defaults to ‘none’)
- numberposts (defaults to -1)
- post_type
- post_status (defaults to ‘publish’)
- orderby (defaults to ‘post_date’)
- order (defaults to ‘DESC’)
- markers (defaults to ‘large’)
Can this tag be used in a page? I don’t want maps on posts but I want people to enter an address in a post and have that location show up on ONE map that will be displayed in a page.
The shortcode [wpgeo_mashup] will work on any page and is designed to show all Geo locations from all posts on one map… It should be what you are looking for,if I’m not mistaken
RavanH that’s what I needed. Any simple explanation on how to display it??? “show all Geo locations from all posts on one map”
hi,
what is [wpgeo_map_link] for? I try to put in my page and nothing happen…
You should be able to use it in a post for which you have set a location to output a link to a Google Map.
Hey, I have an idea to help improve the small but growing WP Geo community!
How about turning these documentation pages into wiki pages where users can submit edits/revisions for approval by the site admin?
It’s not hard to do at all:
* First, create a custom post (page) type called “wiki” (or whatever you like) with custom capabilities (eg edit_wiki, edit_others_wiki, etc).
* Then migrate all documentation pages from the standard “page” type to the “wiki” post type.
* Then use the “Members” plugin to add the edit_wiki capability (and other desired capabilities except for publishing capabilities) to the subscriber role.
* Then add the “Revisionary” plugin that allows users with the edit_wiki capability to submit revisions for approval (or denial) by the admin(s).
* Add “Peter’s Post Notes” and “Peter’s Collaboration E-mails” so that users can be notified of approvals or denials. Admins can include optional notes explaining the approval or denial.
And viola, your users can now submit revisions of documentation pages for you to approve (or deny) and thus help you make wpgeo.com a more useful resource for users of your plugin.
I think that’d be neato!
I’d especially make use of it as I dive into WP Geo while developing my site.
Cheers!
I like your idea. I’ve been thinking how I could make it more collaborative as I don’t always have time to dedicate to support and questions.
I’ll have a look at those plugins and see what could be done.
In the meantime, If you have any amends, just post them as comments and I’ll add them.
Ben
FOr sure, will do… THere’s also a plugin called “WP Issue Tracker”.. Its pretty cool! It adds a bug tracker to wordpress. It could be a neat way to keep track of bug, feature requests, to-do list, etc.
Am currently using Google code for bug tracking.
http://code.google.com/p/wp-geo/issues/list
I’ve been trying to add a page with a map containing all posts in one map but i only get the last 5 posts. Does anyone know how to use the wpgeo_mashup shortcode to generate the map with all posts?
The plug-in is great! thanks a lot!
I think it accepts pretty much the same parameters as get_posts() so specifying “numberposts” to -1 should do it.
I’ve tried some combinations… none of them work, all of them show a default 5 post:
[wpgeo_mashup {numberposts:-1}]
[wpgeo_mashup {numberposts:'-1'}]
[wpgeo_mashup numberposts:-1]
[wpgeo_mashup {numberposts=-1}]
[wpgeo_mashup numberposts:-1]
[wpgeo_mashup numberposts:'-1']
no one works…
Try [wpgeo_mashup numberposts="-1"]
Great! Thanks a lot! I will donate when i get some money in my bank! you’ve been so fast!! Cool job!
Using [wpgeo_mashup] in a page initially displayed only one item.
Using [wpgeo_mashup numberposts=-1] displayed all my posts.
I find those parameters are not well documented right now, or at least not obvious to find…
I would suggest adding them on this page with example like
[wpgeo_mashup numberposts=-1]
[wpgeo_mashup height=500px width=100%] etc…
is it possible to see the markers of panoramia’s photos in wpgeo?
Hi,
great great plugin..
only a question: how can I show in a single page all the place of category “restaurants” and in another page alls of “hotels”?
thx in advance.
mauri
The is a template tag to do this – get_wpgeo_map()
Read more here…
I don’t this you can currently do it using a shortcode but hope to add that in the next major version.
Actually I think the [wpgeo_mashup] shortcode uses the get_wpgeo_map() function so you might be able to pass a category id as an attribute to that.
Thanks Ben for the fantastic plugin!
Is it possible to use a short code to return the geo title? I know you have provided a way to do so with template tags, but how about a short code?
Brandon,
Currently no shortcode at present, will add one into the next version.
Have added it to the issues list with example code that you could add to your theme’s functions.php file for the moment.
Thank you so much!
Do you know why it is returning the title outside of the containing div? In other words, the geo title isn’t being returned in-line with the content, it is being returned outside of the div where the content and shortcode are placed.
Sorry, have provided updated code at the issue link above.
I know you don’t have to be as helpful as you have been, so I owe you a huge thank you!
You have been incredibly helpful, and incredibly responsive. I am happy to donate for your hard work!
Thanks Brandon
Hi There,
I dont know if I am missing something?
I am try to get a map displaying all my geotagged posts on one map on a page, all of the posts are custom call ‘portfolio1′
I have been trying the [wpgeo_mashup] shortcode..but nothing?
I wonder if you could point me in the right direction?
Many thanks