WP All Import – not importing logo or categories correctly

This topic contains 10 replies, has 4 voices, and was last updated by  picocodes 5 years, 2 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #509402

    Andy
    Expired Member
    Post count: 46

    I am using WP All Import and the GD plugin to import new listings.

    It’s working well except for two things:

    Logo is not importing. The file is already in the media library. I have tried the media item ID and the URL, but neither are working.

    Categories are not importing. WP All Import shows them correctly in the preview and they even appear correctly in the categories column when viewing all listings in WP admin, but they do not appear on the WP admin edit page or the details page on the frontend.

    I know there is a CSV import in the core that I can try instead but I would prefer to use XML and WP All Import.

    #509403

    Andy
    Expired Member
    Post count: 46

    I have investigated the categories further.

    I was using WP All Import’s standard feature for importing taxonomies for the categories. Then I saw that the section for GD import settings also contains fields for Category and Default Category so I have tried using these as well.

    What I found is that the GD import settings do set the categories correctly on the WP admin edit page and the details page on the frontend BUT they do not set the categories correctly so they appear in the categories column when viewing all listings in WP admin. The WP All Import taxonomy import feature does the opposite!

    So to import categories fully it appears that you have to use both the GD and WP All Import category fields.

    #509485

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Andy, thanks for reporting.

    Could you provide a screenshot of the relevant WP All Import settings and a sample file so we can test this on our end?

    Thanks

    #509995

    Andy
    Expired Member
    Post count: 46

    I’ve got the categories working by specifying in both places as described above BUT still no success setting the logo.

    You can do a completely bare-bones import to test this. Sample XML:

    <?xml version="1.0" encoding="UTF-8"?>
    <data>
      <Listing>
        <Title>Test Listing</Title>
        <LogoURL>http://blah.com/wp-content/uploads/2019/09/logo.png</LogoURL>
      </Listing>
    </data>

    In WP All import you only need to configure the title and GD section logo fields. Obviously the URL above needs to point to a real image file.

    This is into a CPT using the standard Company Logo field. If I then export the data using the standard GD CSV export I can see the logo field has been set to exactly the value entered, but the logo is not showing on the listing.

    I tried adding 3 pipes as in the docs for a native GD import but that made no difference.

    I think the problem is that GD only sets the value, it does not add an entry into the attachments table wp_geodir_attachments.

    #509997

    Andy
    Expired Member
    Post count: 46

    In addition, I just looked into using the GD native import just to set logos, and found that it adds the logo TWICE for each listing!

    CSV:

    ID,logo,post_type
    12892,http://blah.com/wp-content/uploads/2019/09/blah.png|||,gd_listing
    #510122

    picocodes
    Moderator
    Post count: 141

    This has been fixed. Expect a new update soon.

    #510125

    Andy
    Expired Member
    Post count: 46

    Fantastic! Is that a fix to the WP All Import add-on and/or the CSV import?

    Is the fix(es) on GitHub?

    #510129

    picocodes
    Moderator
    Post count: 141

    Yeah. The fix is on GitHub but the repo is not accessible to the public.

    If you have a staging site, then maybe I can apply the patch so that you can start using it right away.

    #510134

    Andy
    Expired Member
    Post count: 46
    This reply has been marked as private.
    #511217

    Fabian Suter
    Lifetime Member
    Post count: 135
    This reply has been marked as private.
    #511224

    picocodes
    Moderator
    Post count: 141

    @chasperlisimba are you following these steps?

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount