How to add maps using custom fields and get_meta_data ()

Home Forums MapPress Support How to add maps using custom fields and get_meta_data ()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9762
    additive
    Participant

    Hi,

    I hoping that someone will be able to help me with this…

    I’m trying to code a single post template file so that it dynamically displays the map associated with the post created in wp editor.

    My thinking so far is that I will have to do this using a custom field then the get_meta_data () method.  Problem is, I don’t know what code to add (or where) to achieve this.

    Can anyone help me please?

    Blair

    #9763
    additive
    Participant

    Solved:  found another post in this forum (on page 17!) which helped:

    http://mappresspro.com/forums/topic/how-to-add-map-to-template-without-specifying-an-id

    Thanks!

    #9767
    Chris
    Keymaster

    Hi, there are some simple examples in the documentation of generating a map using PHP:

    http://mappresspro.com/mappress-documentation

    However, if you already have your address or lat/lng data stored in custom fields, MapPress can just generate the maps automatically by geocoding those fields.

    If you’d like to try it, version 2.38.2 has better geocoding capability, and it also has a ‘template’ file you can use to customize the POI contents:

    http://mappresspro.com/mappress-2-38-2-beta-available

     

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.