• Resolved eddr

    (@eddr)


    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

    https://www.ads-software.com/plugins/codepeople-post-map/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter eddr

    (@eddr)

    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?

    Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter eddr

    (@eddr)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding markers/pinpoints to some map automatically’ is closed to new replies.