Title: [Plugin: WP Geo] Using the plugin with custom post types
Last modified: August 19, 2016

---

# [Plugin: WP Geo] Using the plugin with custom post types

 *  Resolved [mamouneyya](https://wordpress.org/support/users/mamouneyya/)
 * (@mamouneyya)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-geo-using-the-plugin-with-custom-post-types/)
 * I feel lost with the little documentation available to this plugin. I want to
   implement geo-tagging for custom post type I’ve created. However, I cannot get
   this working.
 * **What I want:**
    (1) The ability to geo-tag custom posts type called ‘schools’.(
   2) The ability to display a map with all schools as markers, on some page.
 * **What I did:**
    (1) Created a custom type for schools based on ‘posts’, using
   Custom Post Type UI plugin. (2) Checked this option to include the map with my
   schools type: [http://grab.by/6Txr](http://grab.by/6Txr) (3) Added some schools
   to my WordPress, and geo-tagged them. (4) Added the piece of code mentioned in
   [this thread](http://www.wpgeo.com/forum/topic/new-shortcode-for-mashup-map) 
   to the end of the file: /wp-geo/includes/shortcodes.php (5) Created a page called‘
   Map’ and entered the shortcode: [wp_geo_mashup]
 * Now I see the map on that page, but it’s being displayed without any marker to
   the existed schools.
 * Any help is highly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-geo-using-the-plugin-with-custom-post-types/#post-1723638)
 * In the piece of code you added to /wp-geo/includes/shortcodes.php try changing
   the get_wpgeo_map() function to read as follows:
 * get_wpgeo_map(‘numberposts=-1, post_type= schools’);
 *  Thread Starter [mamouneyya](https://wordpress.org/support/users/mamouneyya/)
 * (@mamouneyya)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-geo-using-the-plugin-with-custom-post-types/#post-1723639)
 * Unfortunately, it doesn’t work 🙁
    The map is still being displayed without any
   marker.
 *  Thread Starter [mamouneyya](https://wordpress.org/support/users/mamouneyya/)
 * (@mamouneyya)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-geo-using-the-plugin-with-custom-post-types/#post-1723640)
 * Ooh, finally I could figure it out. This works:
    get_wpgeo_map(‘numberposts=-
   1 **&&** post_type= schools’);
 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-geo-using-the-plugin-with-custom-post-types/#post-1723667)
 * Sorry, yes it should be:
 * `get_wpgeo_map('numberposts=-1&post_type= schools');`
 * or:
 * `get_wpgeo_map(array('numberposts'=>-1, 'post_type'= >schools));`
 *  [clickgnosis](https://wordpress.org/support/users/clickgnosis/)
 * (@clickgnosis)
 * [15 years ago](https://wordpress.org/support/topic/plugin-wp-geo-using-the-plugin-with-custom-post-types/#post-1723851)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: WP Geo] Using the plugin with custom post types’ is closed to
new replies.

 * ![](https://ps.w.org/wp-geo/assets/icon-256x256.png?rev=993625)
 * [WP Geo](https://wordpress.org/plugins/wp-geo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-geo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-geo/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-geo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-geo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-geo/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [clickgnosis](https://wordpress.org/support/users/clickgnosis/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-wp-geo-using-the-plugin-with-custom-post-types/#post-1723851)
 * Status: resolved