Map infobubble (no mashup)
-
Hi there,
I’m trying to adjust the infobubble of the map on my contactpage.
I would like to have a featured image on the left, and the title and city on the right.I found the following code, but it doesn’t work (Also I think its only for mashups)
function prefix_pgmm_item($itemContent) { $itemContent = ''; $itemContent .= '<h2>'; $itemContent .= ' <a href="'. get_permalink() .'">'; $itemContent .= ' '. get_the_title(); $itemContent .= ' </a>'; $itemContent .= '</h2>'; $itemContent .= '<h3>Address</h3>'; $itemContent .= wpautop(get_post_meta(get_the_ID(), '_pronamic_google_maps_address', true)); $itemContent .= '<h3>Description</h3>'; $itemContent .= wpautop(get_post_meta(get_the_ID(), '_pronamic_google_maps_description', true)); return $itemContent; } add_filter('pronamic_google_maps_mashup_item', 'prefix_pgmm_item');
Than I found this code in an other topic on the supportforum:
/** * Filter snippet */ function prefix_pronamic_google_maps_item_description( $description ) { global $post; $description = get_the_title().'<BR>'.get_post_meta( $post->ID, '_pronamic_google_maps_address', true ); return $description; }
This didn’t work when I pasted it in functions.php neighter just above the map code on contact.
Do you have any idea how I can get this working?
Thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Map infobubble (no mashup)’ is closed to new replies.