Home › Forums › MapPress Support › Geocode problems with using custom fields city & state
- This topic has 5 replies, 2 voices, and was last updated 13 years, 4 months ago by
esscott.
-
AuthorPosts
-
April 18, 2013 at 3:38 am #12285
I have a site built with several custom post types (built with WP Types – http://wp-types.com) and I have the geocoding fields in Mappress set to:
Address Line 1 = wpcf-address
Address Line 2 = wpcf-address_line_2
Address Line 3 = wpcf-city
Address Line 4 = wpcf-state
When all the fields are populated everything works great! However, if I only have “wpcf-city” and “wpcf-state” the map returns don’t match the input.
For example, City=Newburgh, State=Indiana returns “15 Old Newburgh Tpk Union Hill, Susquehanna County, Pennsylvania, 18823”
I really need the City and State to be separate custom fields for other functions of the site, is there something I can do to fix this?
April 18, 2013 at 5:59 am #12288Hi,
That sounds strange. Try this: view that post and check the values in the custom fields. Then enter “newburgh” in one and “in” in the other and publish the post.
Does the map show the same location? I just tried it – but I got the center of Newburgh, IN, as expected.
Is it possible some other field value is getting set and interfering with the address?
Please send a login and I’ll take a look at your site. Or, see if you can replicate the problem for me on a demo site:
April 18, 2013 at 6:15 am #12289Thanks for the reply. Where should I send you a link to the admin?
April 18, 2013 at 6:22 am #12290Hi, you can use the contact form.
Could you also please try entering those fields manually and publishing the post?
April 19, 2013 at 3:36 am #12299Hi,
For anyone else looking: this is not a MapPress issue. The form plugin was storing the wrong values in the custom fields.
@esscot: I think this is now resolved, but let me know if not.
April 19, 2013 at 3:41 am #12300Absolutely correct… Mappress was doing exactly what I was telling it to do – I had not replaced the numeric default values in my custom fields (they were numerical and didn’t include the actual state name).
Placed the actual state names in the fields, and everything works beautifully!
Thanks Chris for helping on this – sorry for taking up your time for such a bone headed mistake on my part!
-
AuthorPosts
- You must be logged in to reply to this topic.
