Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter edu_sanzio

    (@edu_sanzio)

    Ha! Finally could solve the image in balloon problem!

    function prefix_pgmm_item($itemContent) {
    	$itemContent = '';
    	$itemContent .= '<a href="'. get_permalink() .'">';
    	$itemContent .= 	get_the_title();
    	$itemContent .= '</a>';
    	$itemContent .= '<br />';
            $itemContent .= '<img src="https://127.0.0.1:8888/wordpress/wp-content/themes/estate/thumb.php?src=' . get_post_meta(get_the_ID(), 'image', TRUE) . '&h=100&w=150">';
    	$itemContent .=  get_the_term_list(get_the_ID(), 'propertyfeatures',  '</br>Características: </br>', '</br>', '', '');
    	return $itemContent;
    }
    
    add_filter('pronamic_google_maps_mashup_item', 'prefix_pgmm_item');

    Thread Starter edu_sanzio

    (@edu_sanzio)

    Thanks so much, that worked like a charm, it’s a pitty I can’t show you because i’m developing offline for now (using easyphp).
    There are a lot of things I’m going to try to add, I’ll list here and maybe you can tell me what to do first or point me in the right direction.

    – Adding the posts thumbnail into the balloon, before the features. (i’m trying to do this all day).
    – Different icons per post. maybe adding a custom field with the icon’s path.
    – Adding external kml to single post maps (not mashup). I want to load a GMaps/Earth simple kml showing nearest stores, cool places, etc. (it’s “real estate” site just to remember)

    Thanks so much for the awesome support.

Viewing 2 replies - 1 through 2 (of 2 total)