Title: Map based on query
Last modified: December 30, 2024

---

# Map based on query

 *  Resolved [Florian Egermann](https://wordpress.org/support/users/flegfleg/)
 * (@flegfleg)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/map-based-on-query/)
 * Hi, i have a lot of Custom Post Type posts, all have Geodata (via the ACF-field).
   
   How can i create a map that dynamically shows all of them?
 * Thanks

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

 *  Plugin Author [mapster](https://wordpress.org/support/users/mapster/)
 * (@mapster)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/map-based-on-query/#post-18220704)
 * Hello Florian, it’s still a bit new and I’ve been working on a new main website
   so I haven’t got to updating the documentation, but you can go to any map you’re
   creating, then where you add “Points, Lines, & Polygons”, scroll down to the 
   select box that says “Custom Posts”. There you can select the ones you want to
   add. Let me know if that works?
 *  Thread Starter [Florian Egermann](https://wordpress.org/support/users/flegfleg/)
 * (@flegfleg)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/map-based-on-query/#post-18220849)
 * Thanks for the quick reply!
 * I found the setting, but i don’t want to select individual posts (e.g. “Location1”,“
   Location2”, “Location3”), i want to select a custom post type (e.g. “Stores”),
   so that new stores get added to the map automatically.
 * If there’s no gui for this, i am comfortable with using WordPress Hooks/Filters
   if possible.
 * Thanks
 *  Plugin Author [mapster](https://wordpress.org/support/users/mapster/)
 * (@mapster)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/map-based-on-query/#post-18220901)
 * Sorry, this functionality doesn’t currently exist in the plugin. I can consider
   adding it, but right now you can’t select custom post types and have them added
   automatically. I don’t think there’s any simple way to do it with hooks or filters
   either — this functionality in general is quite new and there hasn’t been much
   interest in it, so it may take a while to try to add something as complex as 
   adding by custom post types.
 *  Thread Starter [Florian Egermann](https://wordpress.org/support/users/flegfleg/)
 * (@flegfleg)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/map-based-on-query/#post-18220950)
 * OK! Thanks for the quick answers, please add this as a feature request, since
   it is a must for my use case.
 *  Plugin Author [mapster](https://wordpress.org/support/users/mapster/)
 * (@mapster)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/map-based-on-query/#post-18383997)
 * Hello Florian, it’s rather late but I have time to work on this now. Is this 
   still something that you need or is it no longer necessary for you?
 *  Thread Starter [Florian Egermann](https://wordpress.org/support/users/flegfleg/)
 * (@flegfleg)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/map-based-on-query/#post-18417555)
 * Hi, thanks for asking, i found another solution in the mean time.

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

The topic ‘Map based on query’ is closed to new replies.

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

 * 6 replies
 * 2 participants
 * Last reply from: [Florian Egermann](https://wordpress.org/support/users/flegfleg/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/map-based-on-query/#post-18417555)
 * Status: resolved