Hi Nomad,
It is not you. I haven’t got to upload documentation about the shortcodes or widgets yet and my apologies for that.
Basically you can use the shortcode to display the location of the current post being displayed. You can add it to the content of a post/page or anywhere in your theme’s template files ( Header, single page, footer and so on) using:
<php echo do_shortcode('[gmw_single_location]'); ?>.
The attributes to be used with the shortcode are below:
map_height – map height in pixels or percentage (ex. 250px or 100%)
map_width – map’s width in pixels or percentage (ex. 250px or 100%)
map_type – may type (ROADMAP, SATELLITE, HYBRID,TERRAIN)
zoom_level – map’s zoom level ( between 1 to 18)
show_info – 1 or 0. 1 will display the additional information of the location (phone, fax, website…)
directions – 1 or 0. 1 will display “get directions” link.
Hope this helps. let me know if you have any other question.
Thank you
Eyal
could you provide any example for using the options on the do_shortcode? I tried stuff like <php echo do_shortcode(‘[gmw_single_location, map_height: 500px]’); ?> or <?php echo do_shortcode(‘[gmw_single_location]’,'[map_height: 500px]’); ?> which did not work for me.
Thanks a lot
Sorry, I’m quite new to WP and did not know about standards. For other newbies who want to change the size of the map: <?php echo do_shortcode(‘[gmw_single_location map_width=”100%” zoom_level=15 show_info=0 directions=0]’); ?>
@nikfm, Sorry for the delay and thank you for the tip above.
For show_info, it does not echo out Email address instead put website information on email section.
Is this only happening to me? or a bug?
Found the issue. on plug-in’s functions.php (post > include > functions.php) Line 125, you are missing closing ” on mailto link.
should be like below.
if ( in_array(’email’, $additional_info) ) { $single_map .= ‘<div class=”gmw-email”><span>’. __(‘Email: ‘,’GMW’); $single_map .= ‘</span>’; $single_map .= ( isset($post_info[0][’email’]) && !empty($post_info[0][’email’])) ? ‘‘.$post_info[0][’email’].’‘ : __(‘N/A’,’GMW’); $single_map .= ‘</div>’; }
Thank you for the great plug-in!
Thank you.
This already fixed in the coming update of GEO my WP which is under development.
Send me an email to [email protected] if you’d like me to email you the beta.
I can’t seem to get this to work at all. I’ve started to use this app to replace my current app and the simple task of showing a map on of the store listing doesn’t do anything. I bought a premium addon but am not happy with the lack of documentation on simple things.
Hi Mike,
I know that the documentation isn’t complete but I am working on it. I am doing my best to manage my time between bugs fix, updates, support topics and documentation.
Please feel free to ask me anything.
You also find some information in the support forum of the website where you can also post your questions.