CP Google Maps
[resolved] Adding markers/pinpoints to some map automatically (5 posts)

  1. eddr
    Posted 2 years ago #


    I'd like to know if the plugin integrates with wordpress in a way that pinpoints/markers can be added automatically via api / some code.
    For example, if I have events (birthsday, doomsday, etc.) and I want that a single map will show all these events without inserting them manually, but it will be added to the map automatically with each new event.
    Can it be done easily?



  2. codepeople
    Plugin Author

    Posted 2 years ago #


    Not really. The pinpoints are added to a post/page as metadata, the structure of each points is as follow:

    Name of metadata: cpm_point

    Structure of metadata:

    Associative array with keys: icon, address, name, description, latitude, longitude

    If you want to creates the pinpoints dynamically, you should associate the corresponding metadata to the post or page.

    Best regards.

  3. eddr
    Posted 2 years ago #

    thanks for the prompt reply

    So I can add it dynamically by adding "cpm_point" metadata entries? great.

    What do I do if the map is on the homepage?

  4. codepeople
    Plugin Author

    Posted 2 years ago #


    The map may be inserted in the homepage, but the points must be associated to the posts and pages of your website. The pinpoints don't exists separated from the posts and pages.

  5. eddr
    Posted 2 years ago #

    ok, thanks, I'll try it and ask again

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CP Google Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic