GithubHelp home page GithubHelp logo

Comments (8)

helgatheviking avatar helgatheviking commented on July 17, 2024 1

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.

helgatheviking avatar helgatheviking commented on July 17, 2024

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.

helgatheviking avatar helgatheviking commented on July 17, 2024

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.

helgatheviking avatar helgatheviking commented on July 17, 2024

@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.

leymannx avatar leymannx commented on July 17, 2024

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.

helgatheviking avatar helgatheviking commented on July 17, 2024

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.

leymannx avatar leymannx commented on July 17, 2024

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.

helgatheviking avatar helgatheviking commented on July 17, 2024

from radio-buttons-for-taxonomies.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.