WebDevStudios / taxonomy-switcher

Taxonomy Switcher
GNU General Public License v2.0
29 stars 5 forks source link

Option to retain selected parent when switching a specified category. #3

Open mpmchugh opened 8 years ago

mpmchugh commented 8 years ago

It seems there needs to be an option to retain the selected parent when switching a specified category, or it should do so by default.

When selecting a category with children and grand children, it seems the selected category's children and grandchildren are switched, but the actually selected parent (or grand parent) is lost.

e.g. attempting to switch a specified "Artists" category with children and grand children, like:

Artists

When selecting "Artists" as the category to switch to the new taxonomy, all you get is:

... but the "Artists" parent is lost.

-Michael

sc0ttkclark commented 8 years ago

Assuming you have created a "Artists" taxonomy, this is what the process was made for. Splitting out a set of terms from a parent into their own taxonomy. What's your exact use-case here, what taxonomy would this go into for you?

mpmchugh commented 8 years ago

That's why I suggested it as an option.

My use case was I was re-organizing and switching a few separate hierarchical categories (with children and sub children) that I wanted to switch in their entirety to a single new taxonomy — Artists, Exhibitions, Unavailable —so I needed to keep the top-level categories selected intact.

In my exact case, I had been using a plugin that added media categories by using the standard "Posts" categories — so they were in both places, which ultimately was not desirable. So, I was re-configuring when I had found a solution to have separate Media Categories, so I wanted to move them all to the new taxonomy, not to separate taxonomies.

So, it seems there is a need for both uses.

It also seemed that this use case would be the default given the you can specify a series of categories to switch at the same time, though I can also see a use to merge multiple hierarchical categories into one as well.

Perhaps, a "retain parents" checkbox would suffice.

sc0ttkclark commented 8 years ago

That makes sense to me, I'm no longer a maintainer on this project but I just stepped in to get some clarification as I was interested too.