Adding zip code to search option with theme/wordpress - wordpress

I am currently trying to use "listingpro" theme which is a listing directory. There is a search function which cities can be used to search for listings within a chosen radius. The admin has to put in the cities for each of the listings and the search results will appear on the map using google maps api.
However, using zipcodes for search options is not an option. I am wondering if there is some way in which I can add searching by zip code feature so when a user types in their zip code the listings within the designated radius will appear on the search page and on the map. Or if there is a tutorial somewhere on how to do this? This is a bit over my head and I am not sure if this is possible with this theme without doing a ton of customizing.
Thank a lot for your input!

According to this page, this is possible with the Google Places API. I assume the theme uses Google Maps API as default, so switching out or adding the the GPAPI would require a fair amount of customization.

Related

Show my shop in google maps without search

I have a problem with google maps, I register my business on google and want to add location, after adding by following google's instruction (add missing place) I can see the building just after searching by name. Desire result is to see the building without search by concrete name.

How to control the style of labels in StreetViewPanorama?

I need to embed some Google Maps API in a templating system I haven't full control over (CrowdFlower's), but the "host CSS" is breaking the styling of the labels of the streets in StreetViewPanorama, making them difficult to read. E.g. the default styling you get by using Google Street View directly is:
... but what I get is:
You can see that the "Christ Church Ln" label under the bins is barely visible.
Google API's docs show how to style maps but not how to do the same with [StreetViewPanorama.
I have tried "inspecting" the labels to find out the name of the class used by Google and restore it to more readable features but did not manage to find it, probably my skills are not advanced enough.
Can you help? If you want a sandbox to play with, try using my testbed here. Thanks.
G.

How to embed Google Adwords Editor for Woocommere Based Website

What is the best way to integrate Google Adwords editor or a similar tool with woocommerce based website so that Google Ads can be created in the most efficient manner?
You could use this plugin: http://www.woothemes.com/products/google-product-feed/
Alternately if you just wanted to use regular AdWords you could create a CSV file that matched the AdWords Editor file import spec. You’ll get this spec by exporting a campaign using AdWords Editor and looking at the file.
I’ve built several automated Google AdWords creation tools over the last couple of years using this approach. They’ve worked more or less like this:
Get a list of all the products from the store (using an API,
database dump or CSV export).
Foreach product create an adgroup.
Foreach adgroup create one text advert with the landing page url set
to the product url.
Foreach adgroup create an exact and phrase match keyword with the product name.
Export it as a CSV file.
That’ll give you the basic structure fairly quickly. After that you need to add extra keywords if needed and probably extra adgroups over time.
Getting the automated advert writing 90% right is fairly easy. It’s just about merging the product name into some text. Getting it 100% right is a far bigger problem. It’s far easier to have your code spit out an ad and then pass it onto someone for polishing up.

How would I go about creating an interactive map using google's API in Wordpress?

I'm working on a Wordpress website for a friend and want to put a calendar on a page that when the mouse scrolls over a country for the country to light up and display some information as well as give the user some options to download a pdf about that country.
See http://us.fulbrightonline.org/countries/selectedregion/23 to get an idea of what I mean.
Just need to get a sense of what technologies and tools are needed to make something like this work. I know I will need to utilize an API but the hovering and attaching a pdf to each country is new to me.
You could try to use the Google Geochart API for your problem. It allows to create interactive maps and to capture click events. It also allows to color countries individually and to display tooltips. You can find more information and examples here: https://developers.google.com/chart/interactive/docs/gallery/geochart
I created a plugin for WordPress that uses this API. It integrates all the needed scripts and allows to build a map from the admin panel. You can find more information here:
http://meisterpixel.com/interactive-map-builder/

Google maps api marker info in sidebar

I'm currently creating an interactive web map using Google Maps Javascript API version 3. I'm not sure if this is possible but I would like to create a series of map layers consisting of different kml files that could be toggled from the side bar. I would also like to be able to access the individual points within the kmls so that when the user clicks on a particular point, photos, text etc. can be loaded outside the map window...
Any ideas on how to accomplish this? I've been searching for a while and only found ways of configuring the infowindow which I personally find unattractive...
There is a way to load KML into a google maps application natively, there is actually a pretty good example of how this is done here:
http://gmaps-samples-v3.googlecode.com/svn/trunk/layers/layers.html
One trick I will mention is that since the KML is downloaded to Google's servers in order to be rendered on the map, it must exist on a public facing web server somewhere, Google won't be able to access it from your local machine.
I found this tutorial which seems like it'll do the trick!

Resources