Comments (8)
Great, I was going to open this based on your WP.org reply. And just noticed it myself. I think I have to dig into the API as everything in Gutenberg is saved via the API.
from radio-buttons-for-taxonomies.
Either need to find a way to modify the results of WP_REST_Posts_Controller
or perhaps extend the class and replace the controller for all radio taxonomies via the register_taxonomy_args
filter.
from radio-buttons-for-taxonomies.
I actually think this may be more oriented towards the JS side of things. Specifically, may need to mimic how the Radio controls set state. https://github.com/WordPress/gutenberg/tree/master/packages/components/src/radio-control
from radio-buttons-for-taxonomies.
@leymannx Hi Norman. I just pushed a few changes. I think it solves the saving issue. I'd appreciate it if you could take a look when you have a chance.
from radio-buttons-for-taxonomies.
It works super smooth now. Select and updates precisely. Well done!
Only one minor thing with the styles of the focused radio that underlaps the meta box wrapper. It's not bad thing, but it may look broken to the enduser. I'll drop a new issue for that.
from radio-buttons-for-taxonomies.
I've seen the style thing too. Not sure what to do about it.
Glad it's working! Gotta give credit to @5ally and her work at https://github.com/5ally/my-term-selector/ she's been amazingly helpful on this.
I am a little nervous about just how many changes were made to the term selector script. I fear it coud be hard to maintain, but we'll cross that bridge when we get to it.
I'll give a quick thought to the style issue and try to get this packaged up for release!
from radio-buttons-for-taxonomies.
I'm a little bit concerned regarding backwards compatibility. But you didn't remove any of the old code? So the plugin should still work on older WordPress versions you think?
from radio-buttons-for-taxonomies.
from radio-buttons-for-taxonomies.
Related Issues (20)
- Update usage of editor.PostTaxonomyType HOT 4
- Unable to read taxonomy terms - REST API error in console HOT 2
- Conflict with default Category HOT 4
- Fatal error when deleting HOT 2
- Bulk Edit removes terms HOT 8
- Unable to save selected taxonomies when selected as radio HOT 3
- Non-hierarchical taxonomies do not reload as hierachical after quick edit save
- Add UI for disabling "no term" HOT 1
- Add UI for supporting/limiting to specific post types
- Taxonomies appear in gutenberg sidebar for posts when registered to other CPTs HOT 1
- Always revert to default post category on quick edit HOT 6
- Enable for taxonomies based on post type HOT 1
- jQuery 3 updates
- Error when creating new category on custom post types
- Script error when adding new term in non-hierarchical taxonomy
- Script error when searching for term
- Fix CSS on tag taxonomies on block editor HOT 1
- JS Warning: Can't perform a React state update on an unmounted component. HOT 1
- Remove meta boxes called many times on all admin pages HOT 2
- "no term" is missing in action HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radio-buttons-for-taxonomies.