Mashup => POI with output of custom fields…

Home Forums MapPress Support Mashup => POI with output of custom fields…

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14172
    Avantart
    Participant

    Hi Chris,

    I copied map_poi.php to my current theme-directory.
    I want to define the content of the POI using customfields which are defined by TYPES.

    1) for the maps in CustomPostType “Kunstorte” I want to include custom fields like the following ones in the POI:

    – kunstorturl (if this is not empty, construct a link using this URL)
    – kunstortbarriere (depending of the value of this a dedicated symbol)

    2) for the maps in CustomPostType “Kuenstler” I want to include fields like these:
    – kunst-kurse-janein
    – kunst-url (by historical reason different names for URL…)

    I do not know how to reference these custom fields in the map-poi.php

    Can you help me?

    Cheers, Connie

    #14177
    Chris
    Keymaster

    Hi Connie,

    There’s a simple example here for displaying custom fields using get_post_meta():
    http://mappresspro.com/mappress-documentation#toc-modifying-the-poi-template

    I can’t tell you how to read the Types fields because I’m not familiar with their API. You’ll need to consult their documentation.

    They probably have information about how to get custom fields in a template file. The POI template should work the same way.

    #14180
    Avantart
    Participant

    Chris,

    thank you, I got it! Now I can use all my custom fields if I want.

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