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 ()

This topic contains 2 replies, has 2 voices, and was last updated by  Chris 10 months, 3 weeks ago.

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

    additive
    Member

    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
    Member

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

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

    Thanks!

    #9767

    Chris
    Member

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

    http://wphostreviews.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://wphostreviews.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.