patrick30
Forum Replies Created
-
Forum: Plugins
In reply to: [Pronamic Google Maps] Zip Code entry by user?@handhugsdesign I will post a solution soon. I have managed to do the zip code search, now am just working on City search
Forum: Plugins
In reply to: [Pronamic Google Maps] Zip Code entry by user?Miki80: I just did a quick test on this. I am also making a site where users can post locations from frontend.
There is no need to do geocoding I guess.
You can try doing this when you save the post
function new_post( $post_id ) { $address = filter_input( INPUT_POST, 'address', FILTER_SANITIZE_STRING ); update_post_meta( $post_id, '_pronamic_google_maps_address', $address ); update_post_meta( $post_id, '_pronamic_google_maps_active', true ); } add_action( 'save_post', 'new_post' ); // Create post object $new_post = array( 'post_title' => '' ); wp_insert_post( $new_post );You can try this and play around with this
Forum: Plugins
In reply to: [Pronamic Google Maps] Zip Code entry by user?This is something I am trying to do as well, where people can search using zip code or city. I am very close to it, I have got the search function to work and I have got the locations to load also, the only thing is that the map isn’t loading. If I find a solution, I will post it here for you.
Miki80: All the fields in address, longitude and latitude use custom fields, you can do add_post_meta to populate the fields.
Now here you can either ask the user to enter their address and then convert that address to latitude and longitude using geocoding, or you use the geocoding included in the plugin to do it in the frontend.
To convert an address to lat/long, you can try this link, there are many suggestions given
http://stackoverflow.com/questions/98449/how-to-convert-an-address-to-a-latitude-longitude
Forum: Plugins
In reply to: [Pronamic Google Maps] Fetch Map with AjaxAlso just to let you know, I am loading the default map for now using a generic code just to test if the map loads, so you just need to click on search. There is no need to enter the zip code or anything now.
Forum: Themes and Templates
In reply to: Custom Menu Not ShowingYou should look into the files to check if the widgets are in the right sidebar.
Forum: Fixing WordPress
In reply to: Ajax Pagination???????