Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.77k stars 891 forks source link

Primary category selector does not show hierarchical structure #10898

Open moorscode opened 6 years ago

moorscode commented 6 years ago

Especially when there is a long(er) list of categories, finding the right one to make primary can be a bit difficult if they are not displayed in the same order as above.

Edit a category and select "Parent". Edit a (custom) post type item and see the following layout mismatch.

screen shot 2018-09-04 at 08 31 18

This only applies to hierarchical terms (e.g. not to tags)

abotteram commented 6 years ago

When building this, this was actually something that was considered. But when (in your example) Artifact would not be selected, it would be confusing if hoi was to be indented.

So if indented child-taxonomies is something we want in the primary term picker, a decision needs to be made on how to handle this situation.

moorscode commented 6 years ago

Then the order is the confusion part of it. Making sure children are below the parent if they are in the list.

amboutwe commented 5 years ago

Please inform the customer of conversation # 499894 when this conversation has been closed.

amboutwe commented 5 years ago

Still happens in v11.1 and makes it hard to select primary category if two child categories under different parent categories have the same name.

Selection_025

kujain commented 5 years ago

If we can simply display the parent category name before the selected category in the selections, I think it would help clarify both situations eg.

Uncategorized - ChildA
New - ChildA
Another top level category
...

This is a big usability problem for me since I have no idea which should be marked as primary category if more than one uses the same child name.

moorscode commented 5 years ago

@Xyfi the above comment sounds like something that would not be very hard to implement - do you share that assumption?

amboutwe commented 5 years ago

What happens when the child and grandchild categories are the same but have different top level parents?

Example Parent A > Child > Grandchild Parent B > Child > Grandchild

If we included the parent, both would show Child > Grandchild. If we include the full path, it will likely overflow the box thus wrapping to multiple lines. And it can get kinda messy if there are levels within levels. Even two long category names could get messy.

Instead, would it be possible to output the full path above/below the box after selecting the primary category when the primary category is not a top-level category? That could handle any length names and levels within levels without making the selection box messy.

Note: From an SEO perspective, is it a good idea to have two categories with the same name? Would they compete for ranking against each other like mentioned here in the 'Duplicate tags and categories' section?