WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. eddr
    Member
    Posted 8 months ago #

    Hi

    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?

    Thanks

    http://wordpress.org/plugins/codepeople-post-map/

  2. codepeople
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    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
    Member
    Posted 8 months 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
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    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
    Member
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic