GeoDirectory SupportPost will be deleted if both city and map marker position has been changed – GeoDirectory Support https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/feed Mon, 16 Mar 2026 06:02:14 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5755 <![CDATA[Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5755 Mon, 23 Jun 2014 19:31:13 +0000 robertchittock Hi Guys

I wish to update the locations but not to delete any posts.

Please can you advise where the delete query is so I can comment it out?

(I have imported 1000 locations in SQL and need to update the maps for each, but when I click update then it removes any posts associated with that location.)

Thanks

Rob

]]>
https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5820 <![CDATA[Reply To: Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5820 Tue, 24 Jun 2014 01:27:45 +0000 Paolo hi Rob,

I need to refer this to Vikas, I’m really not sure about this…

Thanks for your patience.

]]>
https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5866 <![CDATA[Reply To: Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5866 Tue, 24 Jun 2014 11:10:21 +0000 Vikas Hi,

There is a logic behind it. Lets say u have 5 listing for the city LA at different address in LA
So their address would be:
Sr No. Country Region City Address Lat Lon
1 USA California LA Address1 Lat1 Lon1
2. USA California LA Address2 Lat2 Lon2
3. USA California LA Address2 Lat3 Lon3
and so on ….
Now If u update LA city in back end and change it to something else then having these listing in database will not make any sense because markers of these listing on map will appear based on Lat/Lon.

Please advise ?

]]>
https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5943 <![CDATA[Reply To: Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5943 Tue, 24 Jun 2014 19:00:43 +0000 robertchittock Hi Vikas

Yes the logic does seem correct for that user story, however my user story is a little different. I do believe that if you update a location, as the database is relational, any posts pointing to that location should have their locations updated, rather than the posts being deleted, but that is for another day!

I just need to comment out the line that does the database as I have imported all my locations, but need to update the map so the locations have the lat lon correctly, otherwise all my maps are blue.

I will uncomment it once done.

Thanks

Rob

]]>
https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5963 <![CDATA[Reply To: Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-5963 Tue, 24 Jun 2014 21:08:48 +0000 robertchittock Typo: I just need to comment out the line that does the delete*

]]>
https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-6069 <![CDATA[Reply To: Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-6069 Wed, 25 Jun 2014 04:49:36 +0000 Vikas Try to find this ‘wp_delete_post($postid);’ line of code in location_manager adons/geodir_location_functions.php and comment this. It should be around line number 750.

Please advise ?

]]>
https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-6155 <![CDATA[Reply To: Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-6155 Wed, 25 Jun 2014 17:24:30 +0000 robertchittock Hi Vikas

Many thanks and I have now disabled all deleting of posts as required.

Thanks

Rob

]]>
https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-6161 <![CDATA[Reply To: Post will be deleted if both city and map marker position has been changed]]> https://wpgeodirectory.com/support/topic/post-will-be-deleted-if-both-city-and-map-marker-position-has-been-changed/#post-6161 Wed, 25 Jun 2014 17:34:29 +0000 Paolo excellent!

]]>