This information would be useful to me, too.
The plugin is great!
You can add it to your theme’s functions.php file or into a plugin. eg.
add_post_type_support( 'my-post-type', 'wpgeo' );
That’s it? Sometimes these things are just too easy! Thank you.
I’ve tried this but no luck:(
I inserted the above code with “my-post-type” replaced with my custom post type “events” but all I get on my map page is geotagged posts from the normal posts type…
Any suggestions?
thanks
A
Here’s the exact code
// add custom posts types for WP Geo
add_post_type_support( ‘places’, ‘wpgeo’ );
// end function
How have you implemented your map page?
With a template tag in your theme or a shortcode?
With shortcode
[wpgeo_mashup]
Also, do I need to put this “add_post_type_support( ‘places’, ‘wpgeo’ );” code into my functions.php file as the checkbox for this custom post already shows up in my wp geo settings page?
If you add add_post_type_support( ‘places’, ‘wpgeo’ ) it will enable WP Geo for ‘places’ automatically. If you don’t add it you need to go to the WP Geo settings and enable the checkbox.
Try the following shortcode to make sure it works with the places post type
[wpgeo_mashup post_type=”places”]
Thanks for the quick reply!
[wpgeo_mashup post_type=”places”] works fine – that is it displays all ‘places’
I tried [wpgeo_mashup post_type=”places”, “events”] – but this displayed a map of the world with no posts
Also i tried [wpgeo_mashup post_type=”places” “events”] – but this displayed only places
I’ve not trues it but you could try:
[wpgeo_mashup post_type=”places,events”]
With [wpgeo_mashup post_type=”places,events”] I get the default map (not the world map) with no geotags, just blank.
“post_type” works for more than 1 post type when used in the shortcode?
I have WP set up as network multi-site if that makes any difference
Here’s a link showing the results of the following shortcodes if that helps
http://cambridgevisitor.co.uk/places
[wpgeo_mashup]
[wpgeo_mashup post_type=”places”]
[wpgeo_mashup post_type=”events”]
[wpgeo_mashup post_type=”places, events”]
I’m not 100% sure it works correctly in a multisite setup.
If you are able to test this development version which has some additional patches for Multi Site setups, and provide me with any feedback, that would be very useful.