Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 120008

maxj on "[Plugin: Pronamic Google Maps] Custom markers"

$
0
0

Hi; i did add that code:

/**
 * Filter snippet
 */
function prefix_pronamic_google_maps_marker_options_icon( $url ) {
	switch ( get_post_type() ) {
		case 'my_type':
			return 'http://google-maps-icons.googlecode.com/files/seniorsite.png';
		case 'my_other_type':
			return 'http://google-maps-icons.googlecode.com/files/university.png';
	}

	return $url;
}

add_filter( 'pronamic_google_maps_marker_options_icon', 'prefix_pronamic_google_maps_marker_options_icon' );

to my functions.php but it dsn't working. I was tryig with my own icon as well but nothing helps...Can somebody please help me?

http://wordpress.org/extend/plugins/pronamic-google-maps/


Viewing all articles
Browse latest Browse all 120008