I can't list custom post type with Google Maps

I want to show my custom post types in one map. And also markers should have link to actual posts. How can I achieve that?

  • Predrag Dubajic

    Hi Diego,

    Hope you're doing well.

    Best way to go about this would be to go to Settings > Google Maps > Add-ons and enable Geotag my posts add-on.
    Now switch to "Geotag my posts" tab and enable geotagging for your custom post type.

    Now you can create or edit your CPT and you will see Location field where you can enter your location.

    Once you have your posts with desired locations simply add this shortcode where you want to see a map with those posts:
    [agm_gwp_geocoded_posts]

    You can also add excerpt for each of your posts so once you click on the marker it will show that excerpt together with Read More button, it would look something like this:

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.