Deletion of category

This topic contains 12 replies, has 4 voices, and was last updated by  Paolo 5 years, 12 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #427837

    Felicia Felicia
    Buyer
    Post count: 140

    Hi,

    If i delete a category, will the listings tied under that category be deleted too?

    Thanks

    #427868

    Alex Rollin
    Moderator
    Post count: 27815

    No, deleting a category will not delete the listings.

    However, be cautious! Because, if you delete a category, you should check first to make sure that all your listings will still have a category.

    Many GD features rely on listings having a category; it is a mandatory/required field, so, check first before you delete it that none of your listings will be left without.

    #427904

    Felicia Felicia
    Buyer
    Post count: 140

    ok sure, another thing is that when i upload listings with categories that consist of a comma, new categories are created, separating the category into 2 because of the comma.

    For example, I have a category called Swimming pools, Saunas & Spas (category already created). When i upload a listing with that category, 2 new categories are created: “Swimming pools” and “Saunas & Spas”

    How to prevent that?

    #427908

    Felicia Felicia
    Buyer
    Post count: 140

    Also if i remove a category with sub categories – what happens to the sub categories?
    Do they become main categories? Or remain as sub categories without categories?

    #427924

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    1. New categories created on import – That should not be possible, because all categories must exist prior to import. If this situation persists, please let us know and we can take a look. https://wpgeodirectory.com/docs/core-export/#import

    2. Duplicate categories – please list the steps we can take to recreate the issue.

    3. Deleting Parent category – the ‘child’ categories will become ‘top level’ categories again.

    #428239

    Felicia Felicia
    Buyer
    Post count: 140
    This reply has been marked as private.
    #428240

    Felicia Felicia
    Buyer
    Post count: 140
    This reply has been marked as private.
    #428280

    Paolo
    Site Admin
    Post count: 31206

    Because the comma is used to separate categories, if 1 or more of the category have a comma in it, you must use the slugs to import them, instead of the category name.

    Thanks

    #428292

    Dirk
    Full Member
    Post count: 390

    I have not tested if GD is conform with the CSV standard (RFC 4180): Values with commas should be enclosed in double-quotes.
    Swimming pools, Saunas & Spas -> “Swimming pools, Saunas & Spas”.

    You should use a CSV editor to edit the file like Ron’s Editor.

    Best,
    Dirk

    #428295

    Dirk
    Full Member
    Post count: 390

    @paolo,

    I have checked quickly how you are handling commas in categories. The export is not doing it correctly. You should have a look on this! To use a comma as a delimiter for the categories is not a good idea if you allow commas in the categories (as you do).

    Best,
    Dirk

    #428296

    Paolo
    Site Admin
    Post count: 31206

    I opened an Issue on GitHub to make sure V2 will have this 100% perfect. Stiofan was working on it today.

    With V1 you can solve this using slugs instead of names.

    Thanks

    #428311

    Felicia Felicia
    Buyer
    Post count: 140

    Thanks. I will look into all these.

    Looking forward to V2 too.

    #428516

    Paolo
    Site Admin
    Post count: 31206

    In v2 we use IDs as we are doing it the standard WP way which uses wp_set_post_terms() which states:

    If you want to enter terms of a hierarchical taxonomy like categories, then use IDs. If you want to add non-hierarchical terms like tags, then use names.

    Thanks

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