CSV upload and featured image- Advice needed
This topic contains 12 replies, has 4 voices, and was last updated by Stiofan O’Connor 9 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
May 29, 2016 at 12:24 pm #199837
How is it possible to set the featured image in a csv upload?
I set the file name of the desired featured image i the csv file with a column named IMAGE
I upload the CSV file and I am told what directory to upload the image to
I FTP the image as per advice given on this forum (https://wpgeodirectory.com/support/topic/csv-upload-images/)
After FTP’ing the image to the correct folder I can see the image in the home page but the image is not set as the featured image and therefore does not set the main image for a listing/place detail page.
Also the image is not shown in the media gallery, how can I refresh that?
Obviously I am using CSV’s to import as it would be impossible to deal with the quantity of data I have manually so if (S)FTP’ing images is not the correct way to upload images and if it is not possible to set the featured image properly in the CSV file what other method of importing data would you suggest I could use?Thanks
May 29, 2016 at 9:48 pm #200013Just a quick follow up for further clarification. The image is set as a featured image it is just that the place has to be manually saved in the admin area for the image to display in the detail page on the front end
May 30, 2016 at 10:32 am #200189I have alerted Paolo to your question.
May 30, 2016 at 2:48 pm #200403Hi,
the image set as featured when importing should be the 1st image.
I just tested in our demos and works as expected.
Please provide a link and admin credentials and we will check what’s going on your website.
Thank you,
May 30, 2016 at 8:48 pm #200571Hi Paolo, yes, you are right, I do get a featured image from the first image listed. It’s the detail page that doesn’t get that image unless a manual save is performed on the listing.
I am in the middle of a 22,000 record import test right now so it’s not really a good time to let you in.I’ll post back when the server is not under load and is fairly static.
Thank’s
May 31, 2016 at 10:33 pm #201428This reply has been marked as private.June 1, 2016 at 3:42 pm #201871Hi again,
I’ve flagged this for Stiofan. He’s looking into it.
Thanks
June 1, 2016 at 3:53 pm #201877Hi Paul,
Can you provide FTP info, it will help me debugging and i will be able to correct anything on your site.
Thanks,
Stiofan
June 1, 2016 at 9:51 pm #202055This reply has been marked as private.June 1, 2016 at 10:07 pm #202065This reply has been marked as private.June 2, 2016 at 11:27 am #202256Hi Paul,
There was a bug if setting a new feature image with import, i have fixed it and it will be in the next release.
For now i would just go ahead and import your listings and upload your images then after you are done run this function once “geodir_set_post_attachment();”
I am not sure how technical you are, you could just add this to your theme 404 page and then view a 404 page THEN REMOVE the function or if u want i can run it for you once done.
(it resets all the GD post featured images)Thanks,
Stiofan
June 2, 2016 at 9:15 pm #202511Hi Stiofan,
I added the function to the 404.php but nothing happened? I just got a blank page when viewing it on front end.
Cheers,
Paul.
June 3, 2016 at 12:32 pm #202896Yes it was running out of memory and timing out as you have lots of listings and it was trying to do it all at once, it did do it for some listings but not all.
I have added the import code to your site so new imports should be working.
Worst case you could export and reimport and that would fix or i can write a custom function to do them in batches so not to timeout the system.Thanks,
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket