Hi!
Nice plugin – just what I needed! I added a custom format dropdown to TinyMCE to enclose a selected text with a span class=address – ultra easy!
One thing bugs me, though … how can I get rid of the target=_blank? Is there a way to do this without getting overwritten by the next update?
Speaking about update: the plugin still works, but is it abandoned? Last update was two years ago ??
Cheers,
Alex
I placed this “<div class=“address-iframe”><?php echo the_title(); ?></div>” in my content-single-product.php file all I am getting is the title linked to a map in google-maps.
can you help please?
Thanks!
Asa
Hi,
Great plugin idea. small suggestion… maybe exclude input, textarea, and other form elements. I had a contact form 7 textbox that disappeared because it had the address class. I don’t think anyone would want form elements to be changed into a link.
Thanks
https://www.ads-software.com/plugins/convert-address-to-google-maps-link/
]]>I am posting this in the hopes that it is useful to other people.
The “address” tag is reserved in HTML5 for a very specific purpose, which for many users doesn’t meet their need with this plugin. Most browsers behave strangely when they get to an “address” tag and that is causing extra paragraph returns to show up in the output for many users, it seems.
However, this plugin does not really require that a user use the “address” tag. You can create your own dedicated tag, and make a small alteration to the .js file that comes with this plugin, replacing the word “address” with your new tag name (I used the name “addr”).
Now, if I want to have an address inline in my text, converted into a Google Maps hyperlink, I put “addr” tags around it and it looks perfect in my final output.
For instance, I go to the text editor for my post and enter:
Restaurant name, <addr>123 Main Street, Anytown, MI 12345</addr>
And it creates the html output I want:
Restaurant name, 123 Main Street, Anytown, MI 12345
I think this would meet most users’ needs and since there doesn’t seem to be any further activity by these developers, I offer it as an acceptable kluge in case it’s helpful to you.
https://www.ads-software.com/plugins/convert-address-to-google-maps-link/
]]>Hey,
unfortunately it seems not to work for me. I’m using WP 4.3.1, are there any known compatibility issues?
Best
Benjamin
https://www.ads-software.com/plugins/convert-address-to-google-maps-link/
]]>Great plugin but is there a way to avoid it from breaking up sentences?
When for example you have an address in the middle of the text, it generates gaps before and after the text.
Example:
The location is <address>Road 2, New York</address> and parking is free.
This results in:
—-
The location is
Road 2, New York
and parking is free.
—-
Note that three seperate sentences that are created, the middle one having the url.
Would be great to have it like this:
The location is Road 2, New York and parking is free.
https://www.ads-software.com/plugins/convert-address-to-google-maps-link/
]]>As written the JS code applied to addresses any inner HTML and doesn’t handle newlines in the text very well.
I made the following local change, which converts newlines to spaces in the text, and preserves HTML within the a tag.
jQuery(document).ready(function($) {
//Convert address tags to google map links - Copyright Michael Jasper 2011
$('address').each(function () {
var text = $(this).text();
text = text.replace(/[\n\r]/," ");
var link = '<a href="https://maps.google.com/maps?q=' + encodeURIComponent( text ) + '" target="_blank">' + $(this).html() + '</a>';
$(this).html(link);
});
});
https://www.ads-software.com/plugins/convert-address-to-google-maps-link/
]]>love the idea of this plugin, but can’t get it to work on a phone, which is probably the most needed application for this… any ideas?
https://www.ads-software.com/plugins/convert-address-to-google-maps-link/
]]>When I insert a
tag (by using a TinyMCE advanced feature) in an address to make it multiline, Google Maps shows my location. Apparently Google Maps doesn’t like the <br %2F> in the URL. Would probably work if replaced “
” with “, ” (“%2C “).
https://www.ads-software.com/plugins/convert-address-to-google-maps-link/
]]>I just discovered that the <address></address> tags that I had placed in my custom types/views templates now block out the address completely.
At first I thought this was a types/views issue..but after looking further I see that this is occurring on some other records in my site.
Trying to figure out what the issue is. The only things that I am coming up with are that I recently added cloudflare, seo and cache features to this site..it’s been under development for a while and just finalizing it in beta online before promoting the site.
Any thoughts?
Regards
Will
https://www.ads-software.com/extend/plugins/convert-address-to-google-maps-link/
]]>Hi,
the plugin is really good and simple. I was wondering if there is a way, to convert the adress into GPS coordinates and display them as well.
https://www.ads-software.com/extend/plugins/convert-address-to-google-maps-link/
]]>Hi,
How can we use the iframe as Michael Jasper describes here?
https://www.ads-software.com/extend/plugins/convert-address-to-google-maps-link/
]]>Works like a charm, and was able to use in my custom post types effectively for the following plugins:
Views and Types by “icanlocalize”
Events Manager by “Marcus Sykes”
Awesome!
Thanks
Will
https://www.ads-software.com/extend/plugins/convert-address-to-google-maps-link/
]]>Hello!
I stumbled across this plugin and thought it was pretty neat, so I gave it a 5 star rating and featured it on wpmu.org: https://wpmu.org/wordpress-google-maps/.
I would’ve told you by email but couldn’t find any contact details ??
Cheers!
Tom Ewer
WPMU.org
https://www.ads-software.com/extend/plugins/convert-address-to-google-maps-link/
]]>