-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display tags in the order added and do not reorder them on save #21589
Comments
This seems to be general WordPress behaviour, rather than specific to Gutenberg, and is the same in the classic editor. How are you using the tag order? Your theme can show the tags in any order it wants, and this will appear in your post. How it appears in the editor shouldn't change that. |
I have a plugin of related posts by tag, but the relation is not relevant because first look for the posts with the first tags stored alphabetically, and not the first main tag, that is to say for me the order of the tags are key because the first tag is the most relevant. So when saving everything, it is sorted alphabetically and this does not help me, any idea how to alter this? |
The terms only seem to be shown alphabetically visually, but are stored in order added in the database, so I think this is really a design issue rather than a data one. It's a question of whether the best user experience is for this field to show the tags in order added or alphabetically. That the tags are reordered on saving the post seems unusual to me. I'll add the Needs Design Feedback label. |
According to the database structure, I currently find it complicated that this can be ordered according to the order of the user. What occurs to me that the IDs of the terms are stored in a wp_postmeta (only the ids) in a meta called So when calling any function that has to do with tags, you can call the new parameter 'order' that will call the field
It is an idea but I think that there should be the possibility that the entered tags have the order entered. This greatly influences the related posts of plugins and themes since the first term would be the most prominent of the others. |
If someone set a specific order, I think expecting them to stay in that order makes senses. I would vote to not reorder. |
You just have to add a function just after saving in, this function saves in the |
I've reworded the title of this so that it can be treated as an enhancement. #22048 has been opened since and seems very similar. |
I faced the same issue and saw that while there is the BTW, as I mentioned on #22048 , having an option to reorder terms with drag-and-drop would be great. Additionally, for better accessibility, there could also be complementary navigation using arrows. Here's a very rough sketch to get the idea of what I mean: |
There is a tags PR here that can be tested and commented on: |
Noting that this still occurs in 10.6.1: Screen.Recording.2021-05-17.at.10.27.01.PM.mov |
Will this be implemented in the future? |
Any updates on this? |
any update on this ? |
This needs fixing. Reordering of tags should be a choice, not default behaviour. |
This needs fixing. any update? |
Can we have this functionality? @gsarig mentioned a workaround and it does what we need. But the tags still are ordered in Block Editor. UPD: The tags can be sorted from the Posts -> All Posts -> Quick Edit. |
The editor should NOT change the order of tags upon saving. |
Hi, Gutenberg is ordering the tags alphabetically after saving, I don't want it to sort the tags, I need the tags in the order that I put them, I don't want it to sort it automatically.
The text was updated successfully, but these errors were encountered: