Deletion of category
This topic contains 12 replies, has 4 voices, and was last updated by Paolo 7 years, 6 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 24, 2018 at 3:05 pm #427837
Hi,
If i delete a category, will the listings tied under that category be deleted too?
Thanks
April 24, 2018 at 8:45 pm #427868No, 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.
April 25, 2018 at 2:46 am #427904ok 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?
April 25, 2018 at 3:03 am #427908Also 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?April 25, 2018 at 8:15 am #427924Hello,
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.
April 27, 2018 at 9:27 am #428239This reply has been marked as private.April 27, 2018 at 9:29 am #428240This reply has been marked as private.April 27, 2018 at 6:48 pm #428280Because 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
April 27, 2018 at 10:01 pm #428292I 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,
DirkApril 27, 2018 at 10:14 pm #428295I 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,
DirkApril 27, 2018 at 11:29 pm #428296I 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
April 28, 2018 at 4:23 am #428311Thanks. I will look into all these.
Looking forward to V2 too.
April 30, 2018 at 4:00 pm #428516In 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket