WORDPRESS Embeded MAP width change

https://www.hammertonbrewery.co.uk/site/tint-nitro-london-dry-stout-4-3/ On the webpage above I need to do the below on my GOOGLE MAP: – Reduce width of MAP – Ensure MAP is in the centre of the page Any help advice on how to do this would be greatly appreciated. Thank you
Category: Web

JQuery script working locally on desktop, not working on Wordpress + Divi

So I have to map an image, and I chose to use jQuery. The code works perfectly on my desktop, in the browser, code editors, etc. But whenever I try to port it to the WordPress website I'm managing (using Divi 4.6.6), it doesn't work. I used the same code for both versions, except for the WP one using jQuery instead of the dollar sign for functions and selectors, because otherwise, WordPress won't recognize them. UPDATE: jQuery is not noticing …
Category: Web

Custom plugin route in Wordpress

Okay so my question is quite simple. I need to implement some custom routing rules for my plugin. Those routes would only take one argument (so nothing complicated) and would look like : http://www.example.org/myroute/myargument And ideally, this would call a custom class, and display a custom template (that could directly access the class). What's the best approach for this ? Cheers
Category: Web

Display WordPress the_content() via data attributes

Here is a test fiddle: my fiddle: https://jsfiddle.net/blogob/qtou84Lj/23/ I'm trying to build a full width map in a wordpress site with leaflet. My goal is to dsplay all post with markers on the map. When i click on the marker, a sidebar appear with the corresponding content in it. It's working. But i have a problem that i can't solve. we can see it in the fiddle, when i move the map, i can see "the content" behind the map. …
Category: Web

This page can't load Google Maps correctly

I am trying to get map from address but there are appear some error like You have exceeded your request quota for this API in my console so can anyone help me to fix this. My Javascript code look like below so please check and let me know if i am doing something wrong... Thanks! <?php $geocode = file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.$address.'&sensor=false'); $output = json_decode($geocode); //Store values in variable //print_r($output); if($output->status == 'OK'){ // Check if address is available or not $latitude = …
Category: Web

WordPress Google Maps

Does anyone know of a nice map plugin for WordPress? I have a diary website in WordPress where each diary entry has the latitude and longitude of where each post was written. I thought it would be cool for each post to have a google map showing where each entry was written. Maybe even show the path that was taken while writing the diary. Any ideas?
Category: Web

Create a custom taxonomy that will be used to create and filter markers in a Google Map

I'm trying to create a Wordpress shortcode that will output a full-width, filterable Google Map with a set of markers that will be loaded on first load (and shown or hidden depending on the filters chosen). The thing is, I've never done / used a custom taxonomy before, and I thought that it would be a good idea to create one, I was thinking about "a class" called Marker with the attributes "latitude, longitude, title and description", but I am …
Category: Web

Custom Backend data for map to JSON file?

I want to create a map in the frontend with data that is populated with Point of interests. I want to manage the POI data in the backend but need a generated JSON file from that backend data that talks with the JavaScript in the frontend. If I wanted to implement it manually, how would I do that?
Category: Web

How to build a map with markers from single posts?

I'm writing a blog which is currently hosted at Wordpress.com. My blog posts often contain content from different cities in my country. Now I'd like to include some kind of geoposition in my blog. Furthermore there should be another site with a map (optimal solution would be an OpenStreetmap) and markers which are at the geoposition and link to that specific post. Currently I have no idea if this is possible at all and how to realise it. How can …
Category: Web

Help with a function that will place a map pin for all posts

I have a custom post type called "properties". When I add a property on the admin side, I input an address and then click a button that says "Place Pin At Address". I have uploaded thousands of properties with addresses but I need to run the "Place pin at address" function on all of them. It is time consuming to go through every post and push the button and then publish. I thought I could do something like: add_action( 'publish_post', …
Category: Web

Google map that opens in a new window

I have a custom post type called 'Venue' and I would like my users to be able to create a map to that venue, basically just a marker on a map with the name of the venue and its address. The thing is that I want to create a small snapshot of the map and on hover the website user would click and open the full map in a new tab or window. How can I create this in WordPress? …
Topic: map Wordpress
Category: Web

Is there a tool to get the GPS data from a Wordpress blog on a map?

There is a guy biking through the world. He is writing a wordpress blog about it. Most of his posts have a GPS coordinate at the bottom. I was wondering if it would be possible to draw a (red) line on a (google?) map perhaps. So you can follow the route this guy is going. Thanks
Topic: map Wordpress
Category: Web

Post form as custom post

I'm new to WordPress and need to create a website including a special form, with which I can upload photos, set my position on an OpenStreetMap and choose from several dropdown menus. Here you can find an example of how it should look like: I already did this: Created a page template with the form <form id="new_post" name="new_post" method="post" action="" enctype="multipart/form-data"> Made the form submitable for users who are logged in (is this a secure solution?) <?php if ( 0 …
Category: Web

Best way to show map of tagged posts?

This seems so simple that I'm tearing my hair out. I want to add a page with a map showing all the posts with a particular tag. I want each marker to pop up with the title and the preview, allowing the visitor to click through and read the full post. Ideally I want to be able to use an OpenStreetMap map as the background instead of Google. I've had a look at geopress, geomashup, wpgeo and osm. They are …
Category: Web

Lightbox type effect to support a HTML/jQuery image map

I haven't used WP extensively before but I'm more experienced in HTML/jQuery and I'm helping a friend with their existing WP blog. I have designed an interactive map menu using the technique described here: tutorial and demo (essentially each region of the map has it's own image for both selected and non-selected states and an image map and jQuery is used to toggle the selection of each area) What I want to achieve is to have this pop up in …
Category: Web

Map clashing with WP - suggestions on fix?

I've followed this tutorial - http://www.netzgesta.de/mapper/ to create a state map of USA which you can see here - http://www.teamworksdesign.com/clients/neurosign/contact/alabama/ I downloaded the source files and got it all working locally then uploaded all the files to the link above. It's almost working but the hover doesn't seem to work when you hover over each state. I had this working locally but cannot work out why it's not working online. One cause may be that Wordpress (that's what the site …
Category: Web

Return XML of Post Metadata

All of my posts in one category (i.e. Location) have two custom fields: latitude and longitude. I would like to return an XML or JSON of all those posts (title, latitude, longitude) for use as Google Maps markers. I can't simply call out to a stand-alone php file to return my data as I would like to access my data through $wpdb. What is the best solution?
Category: Web

Wordpress Plugin for Maps of specific Tweets?

Is there a Wordpress Plugin that you can give it a list of old tweets (specified by url or tweet number (for example: http://twitter.com/#!/leeand00/status/20215977534820353) and put them on a map, which will slowly move between them (in demo mode) and then allow the user to click on those tweets? (Just figured I'd check before implementing one) P.S. Can someone please tag this post with "Google Maps" or "Maps" please.
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.