[Pro] Associating Post Fields With Map Content
With the Post Type & Meta Fields addon, you can associate content from your post entries to the map, so it can display in the tooltip or even after you click a region or marker. To do this you’ll need to use the ‘Other Map Fields’ option.
![[Pro] Associating Post Fields With Map Content [Pro] Associating Post Fields With Map Content](https://interactivegeomaps.com/wp-content/uploads/2021/10/other_map_fields.png)
You can add as many fields as you want and map it to pre-existing parameters like Tooltip Content, Action Value or Colours or associate it with a custom parameter identifier.
The content you want to display should be associated with the Action Content field. If you kept your tooltip template with the default values, you can associate a field with the Tooltip Content field and it will display in the tooltip.
The Field Identifier option should contain the ID of your meta field or a placeholder for post data. Accepted placeholders:
post_content
post_title
post_excerpt
permalink
If you can also use dot notation to identify fields. This could be useful if you’re using a meta field created by ACF that stores values in an array. So you can use for example image.url
to get the url from an image field.
After this is done, you can use these fields to populate the tooltip template also, using placeholders like {myCustomValue}
.
Other Articles