robertchittock
Forum Replies Created
-
AuthorPosts
-
December 24, 2014 at 9:29 pm in reply to: Updating a listing causes the images to become attached / deleted #25417
Hi Guust
I can confirm I do not have this setting checked as per the setup of the WordPress Media. Ideally we need all images in wp-uploads and not date based.
Thanks
Rob
Hi Paolo
The website doesn’t use the everywhere feature as we don’t require to know where the user is for operating the directory at this point. We just need to show them a list of services in relation to the location they are searching, not the location they currently are.
I was hoping the search would just work without needing to know the users location?
Thanks
Rob
This reply has been marked as private.Hello,
I have run the code, and re run the search and there are 30 results, but now they are appearing in distance order I think.
There are still results showing which are not relevant to the “near” search criteria.
Any ideas please?
Thanks
Rob
Thanks for letting me know.
I will run this on a development website to see if this fixes the issue with the search not returning the correct results, and then report back with the situation.
Thanks for looking into this today.
In this instance, the Container Haulage is coming up because it is a category under the Companies post type, rather than a keyword search.
This is suggested by the auto complete, so I would imagine it would only pull up posts from that specific taxonomy, with the near field as well?
For this search, duplicate locations is not the case so there must be something else causing the issue?
Thanks
Rob
Thanks I have added the information required to the post as private.
This reply has been marked as private.Hi Guys
Is there anyone able to look into this please?
Thanks
Rob
Hi Vikas
I have had more trouble with this issue and I have noted down my steps. This is on a clean install of WP and the latest GEO Theme and plugins.
From the admin, create a new custom post type called companies.
Add a new company and set the image to one from the computer, mine is called “16_advertise_banner.jpg”.
Publish the post
Notice that images are saved in wp-uploads (and thumbnails generated OK)
Also notice that geodir_attachments has a new entry for the image, and also geodir_gd_company_detail has a new entry for featured thumbnail. Everything works ok.
Now go to the admin and edit this post again but don’t change the images, set the location and publish for example.
Notice that geodir_gd_company_detail and geodir_attachments now has changed the path of the image to “///16_advertise_banner.jpg” from “/16_advertise_banner.jpg”
Also in wp-uploads, the “16_advertise_banner.jpg” image has been deleted but the thumbnails remain.
I would assume that by updating the post that images that have already been uploaded are not removed when saving the post. We have the website live with paying customers and this is a huge issue as companies are losing their images when they update their profile, from front end and also for us from back end.
Please can you advise how to fix asap?
Thanks
Rob
This reply has been marked as private.Hi Guys
I have found if I change the package for a custom post type, or change the field settings for one of the packages then this triggers all images to be removed from the system for that post type. I then get images with red crosses in the admin, and alt text displaying on the page.
Thanks
Rob
June 25, 2014 at 5:24 pm in reply to: Post will be deleted if both city and map marker position has been changed #6155Hi Vikas
Many thanks and I have now disabled all deleting of posts as required.
Thanks
Rob
June 24, 2014 at 9:08 pm in reply to: Post will be deleted if both city and map marker position has been changed #5963Typo: I just need to comment out the line that does the delete*
June 24, 2014 at 7:00 pm in reply to: Post will be deleted if both city and map marker position has been changed #5943Hi 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
-
AuthorPosts