CSV upload and featured image- Advice needed

This topic contains 12 replies, has 4 voices, and was last updated by  Stiofan O’Connor 7 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #199837

    Paul Rogers
    Buyer
    Post count: 75

    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

    #200013

    Paul Rogers
    Buyer
    Post count: 75

    Just 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

    #200189

    Guust
    Moderator
    Post count: 29970

    I have alerted Paolo to your question.

    #200403

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    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,

    #200571

    Paul Rogers
    Buyer
    Post count: 75

    Hi 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

    #201428

    Paul Rogers
    Buyer
    Post count: 75
    This reply has been marked as private.
    #201871

    Paolo
    Site Admin
    Post count: 31206

    Hi again,

    I’ve flagged this for Stiofan. He’s looking into it.

    Thanks

    #201877

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Paul,

    Can you provide FTP info, it will help me debugging and i will be able to correct anything on your site.

    Thanks,

    Stiofan

    #202055

    Paul Rogers
    Buyer
    Post count: 75
    This reply has been marked as private.
    #202065

    Paul Rogers
    Buyer
    Post count: 75
    This reply has been marked as private.
    #202256

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #202511

    Paul Rogers
    Buyer
    Post count: 75

    Hi 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.

    #202896

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes 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

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket