问题描述:

In Wordpress I have created a custom field 'LatLonPosition' which contains different positions in the following format '48.96N, 10.23W'.

I was wondering if it's possible to pull the custom field content so that it displays a google map on each posts of the coordinates.

I know you can download google map plugins, but I was hoping to do this with the custom field if possible.

Hope someone can help.

Thank heaps

网友答案:

Though i have started working on word-press and php but its quite possible what you are trying to achieve

You can use either

get_post_custom_values()

if you are not concerned with the uniqueness else word-press also provides get_post_meta() here are the details

Accessing post custom fields

相关阅读:
Top