Skip to content
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

Setting 'meta_box' => 'radio' causes unusual behaviour #208

Open
intelligence opened this issue Oct 17, 2022 · 0 comments
Open

Setting 'meta_box' => 'radio' causes unusual behaviour #208

intelligence opened this issue Oct 17, 2022 · 0 comments

Comments

@intelligence
Copy link

Hey!

Stumbled across a weird behavior that I ultimately tracked down to my taxonomy being set as 'meta_box' => 'radio'.

Running wp.data.select('core/editor').getEditedPostAttribute('my_radio_button_tax') will not reflect the currently selected term (like it does with the default meta_box), you need to save the post and then run the same command to have it reflect the term id.

Reverting to default meta_box and using this plugin seems to solve the issue, having the data store show the currently selected term in real time..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant