import of Categories: designate child categories

This topic contains 18 replies, has 3 voices, and was last updated by  Paolo 9 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #41103

    Bet Hannon
    Buyer
    Post count: 37

    I really like the new import Categories feature! I have a client working on cleaning up their categories list.

    Is there a way to designate child categories in the import? Or is that only possible manually through the dashboard?

    #41189

    Paolo
    Site Admin
    Post count: 31206

    HI Bet,

    good question, I need to ask to developer if that is possible.

    i’ll get back to you asap.

    Thanks

    #41208

    Bet Hannon
    Buyer
    Post count: 37

    Thanks, Paolo! I have the CSV of the Categories back from the client, so when you get back to me, I’ll be good to go!

    #41213

    Bet Hannon
    Buyer
    Post count: 37

    Also, can a category be a child category of two parents? For instance, “Business Law” might be a child of both “Business” and “Law”…

    And if so, how can I indicate this on the import?

    #41219

    Paolo
    Site Admin
    Post count: 31206

    WordPress won’t allow that. Each sub category can only have 1 parent.

    You’d have to create 2 separate sub-categories, 1 for each parent.

    Thanks

    #41257

    Bet Hannon
    Buyer
    Post count: 37

    Did you all ever figure out if there is a way to designate child categories in the import? Or is that only possible manually through the dashboard?

    #41299

    Guust
    Moderator
    Post count: 29970

    If you add the slug of the subcategory AND the slug of the category, it should import correctly. See also
    https://wpgeodirectory.com/support/topic/import-subcategories/

    #41311

    Paolo
    Site Admin
    Post count: 31206

    Hi Bet,

    I’ve asked to Kiran and we overlooked importing subcategories with the new category CSV import/export feature.

    We already added it and it will be in the next version.

    I think Kiran already pushed the changes into the development version available on GitHub.

    If it isn’t yet, it’s because Stiofan must approve it before and today Stiofan is off. So it could be that it won’t available until tomorrow.

    Thanks

    #41317

    Bet Hannon
    Buyer
    Post count: 37

    Guust, are you saying that if for example, I want to make “Tax Accounting” a subcategory of “Accounting”, in the import line for Tax Accounting, I would make it’s slug: “accounting/tax-accounting”, and that would make it a subcategory?

    #41321

    Paolo
    Site Admin
    Post count: 31206

    no Bet, I think Guust miunderstood your question.

    Once you created your categories and sub-categories, you can import listings and add: “category, subcategory” in the category field and the listing will be added for both.

    But you currently can’t import sub-category via CSV file with the new import/export tool.

    Kiran already fixed this and it will be in the next version. There will be an extra field named “parent”. If the field is left blank you add a category if in the field you write a categeory name, the new entry will be added as a sub-category for that parent catgeory.

    Thanks

    p.s. I replied to your email but got a delivery error. I’ll reply here.

    To sync the new add-on purchased simply go to your account page and click again on the sync forum access link : https://wpgeodirectory.com/support/members/bethannon/

    Let us know

    #41352

    Bet Hannon
    Buyer
    Post count: 37

    Can I test out the beta version of the update with the subcategory import for you?

    #41360

    Paolo
    Site Admin
    Post count: 31206

    I’m sure you can, but I’m not 100% sure Stiofan approved the pull request on the GitHub version yet. If he hasn’t he will tomorrow (today he was off)

    Thanks for your patience,

    #41501

    Bet Hannon
    Buyer
    Post count: 37

    So do we know if the GitHub version includes subcategory imports yet?

    #41576

    Paolo
    Site Admin
    Post count: 31206

    Stiofan says it has…

    #41860

    Bet Hannon
    Buyer
    Post count: 37

    OK. Got a chance to try the github update.

    The child categories did seem to import just as they were supposed to, but the import “hung” at 99% complete, telling me that it was at 1010 of 1014 items, but when I looked in a separate tab at the categories, it only shows 990 categories.

    After a lot of searching, I found that there were a couple of categories where there was some duplication, which were skipped–understandable. I exported the categories from the site, then compared this to what I uploaded. There were about 15-20 items “missing” from the export from the site. BUT, when I searched for them from the dashboard, all those categories were in the site already. Weird.

    I think I’m set now, except for the category icons.

    One thing that would be very helpful on your sample csv for importing would be to show an example entry for cat_icon that is custom & uploaded. I have tried: http://rotaryyp.org/wp-content/uploads/2015/06/map-pin-yellow-th.png, and rotaryyp.org/wp-content/uploads/2015/06/map-pin-yellow-th.png, and wp-content/uploads/2015/06/map-pin-yellow-th.png. And it’s still not working.

    Is there a way to set a custom category icon as a default for all categories?

Viewing 15 posts - 1 through 15 (of 19 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