We just upgraded an old WP site from 5.x to 6.1.1 and everything works except Radio Buttons for Taxonomies is adding in duplicates for each custom taxonomy that is selected.
The duplicates have the ID of the selected taxonomy as its title, so we see a new entry called ’94’, which is the ID of the selected item in the radio button list.
I noticed a note on 1.4.5 “Automatically unset default taxonomy column (if conventionally named) to prevent duplicate columns” and wonder if that’s related to this?
We’re running Version 2.4.6 so this should be an issue though.
It’s a Bedrock/Sage site, if that matters, and everything else is at latest version.
Any ideas how I can troubleshoot this?
Thanks!
]]>I’ve followed the instructions in the FAQ, but can’t get the No [taxonomy name] option to go away.
I’m not sure if I used the correct syntax. This is what I added:
add_filter( ‘radio_buttons_for_taxonomies_no_term_add-to-ride-maps-page’, ‘__return_FALSE’ );
The name of the taxonomy is “Add To Ride Maps Page” and the slug is “add-to-ride-maps-page”
Please advise on what else to try. Thanks.
]]>I’m encountering a bug on the quick edit fuctionality. Once the taxonomy is updated the radio button will not reflect the new value.
To reproduce:
Once you reopen quick edit you will notice Catagories are set to the new value while tags are not (the radio selected is the old value). From my tests every hierarchical taxonomy will be updated while non hierarchical taxonomies will present the problem.
]]>In a single page, we have the option to un-select a radio button but not in the quick edit mode.
Version 2.4.4
]]>Hi –
Saw someone else posted this, but it was a few years ago and looks like it wasn’t a supported feature at that time.
I have a site that has a taxonomy called ‘Organization’.
Trying to make it so the default term is ‘Free Agent’
I added that snippet that disables the ‘no term’ option, but would like there to be a way to instead select a default term.
Is this possible?
If you Bulk Edit custom post types, it deletes any terms that were saved for each post.
To reproduce:
1. Select multiple posts in the post list screen
2. In the Bulk Actions select box choose Edit
3. Change something like the author or status
4. Click Submit
It will remove whatever terms those posts had assigned.
This can be fixed by adding this:
// If posts are being bulk edited, we don't want to do anything.
if ( ! empty( $_GET['bulk_edit'] ) ) {
return $post_id;
}
In the first line of the save_single_term
function in the class-wordpress-radio-taxonomy.php
file.
In 2.4.0, the following file is require()d in class-rb4t-compatibility.php:
modules/class-wc-rb4t-wpseo-compatibility.php
The file in the package does not contain “wc-“. This causes a fatal error. Please correct either the require() statement or the file name to prevent breaking more sites on (auto)upgrade.
]]>Hello,
I noticed that the Advanced Custom Fields field groups in my wordpress build don’t expand when my users click on the labels, after the user has selected a category. I discovered that the issue is coming from a conflict with Radio Buttons for Taxonomies. To reproduce this issue:
Install ACF and Radio Buttons for Taxonomies
Enable Radio Buttons for Taxonomies for Categories
Add a few ACF fields for Posts, and include them in the sidebar
Add New Post
Add a title
Select a category, and close the Category panel.
try to interact with the ACF fields.
If it still interacts, try adding a Featured Image, and then try to interact with the ACF fields.
In order to get around this, my users need to save the draft and reload the page.
I looked at your javascript to see if there may be some conflict with the adding/removing the .hidden class for those field groups, but I didn’t see anything that jumped out at me. I will update this topic if I find anything.
WP 5.7.1
ACF 5.9.5
Radio Buttons for Taxonomies 2.3.1
Congrats for that helpful plugin.
It works well when you create category into a single post but not in custom post types.
On console I get this error
Uncaught (in promise) TypeError: t.props.speak is not a function
on radio-buttons-for-taxonomies/js/dist/index.js
Thanks
]]>Hey there is there a way to select which taxonomy under what post type get effected?
I have a taxonomy shared with 3 post types. On one; I need them as radio buttons but other post type; I need that to be regular checkbox. Any way to do make this work?
Thanks
]]>I’ve created seven Custom Taxonomies and assigned them to two CPTs. I’m using three Custom Taxonomies with Radio Buttons and they also show up in my Blog Posts sidebar. They’re not assigned to Posts and shouldn’t appear there.
]]>Hi,
I noticed that the plugin doesn’t update the category selected when updating in bulk mode. Is this a known issue?
Thank you!
]]>Plugin works great! But there doesn’t seem to be a way to unset the term for a post type if using Gutenberg. If I change the custom post type to a non gutenberg version the ‘No term’ radio buttons shows, but when using Gutenberg the ‘No Term’ radio is not there. Is there any workaround for this do you know?
]]>I am experiencing errors with Radio Buttons for Taxonomies since the last update. The post editor no longer displays our registered sections and when I add one more errors pop up.
What i see:
Any ideas?
]]>I had to roll back to the prev version. Once the upgrade occurred, when this is installed a bunch of errors happen right before I create a new post (any post type). Very odd. Local server flywheel local.
]]>I install their plugin and create radio buttons but when I click on the button the click is not shown…
Select taxonomy image:
Console errors:
]]>
hi ,
first of all thanks for ur awesome plugin.
i have my function work with save_post_{post-type} action :
function set_default_category($post_ID, $post)
{
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
return;
}
// Check permissions
if ('lesson' == $post->post_type) {
if (!current_user_can('edit_post', $post_ID)) {
return;
}
}
$series = wp_get_post_terms($post_ID, 'series', ["fields" => "ids"])[0];
//Check if category is set
if (empty($series)) {
return;
}
// Get the terms using the seris id
$metaSeries = get_term_meta($series);
$inst = (int) $metaSeries['instrument_select'][0];
$gen = (int) $metaSeries['genre_select'][0];
// Set the terms using the slug!
wp_set_object_terms($post_ID, $inst, 'instrument');
wp_set_object_terms($post_ID, $gen, 'genre');
}
add_action('save_post_lesson', 'set_default_category', 10, 2);
it works on edit post page , but in quick edit it dosent work !
whats problem?
edit:
mention that when i disable plugin everything works fine.
Hello,
I’m using your plugin since a while, and it’s really useful for me.
Thanks for that.
I’m currently facing an issue on a multisite configuration (with two sites: main [site A] and secondary [site B].
Your plugin works perfectly on site A.
But on site B, the selection of a value in the radio buttons list has no effect.
I mean:
– When I add a new post, the taxonomie values are display as radio buttons;
– When I select a value and I publish my post: the page is reloaded and the selected value is not selected any more (back to “No …” value).
– And this happens only on site B.
And if I remove my taxonomie form “Radio Buttons for Taxonomies” config panel, every thing works correctly (but with checkboxes, what I dont’ want).
Any idea about this issue?
Is there something special to do on a multisite configuration?
Thanks in advance,
GM
—
WP 5.2.3
Radio Buttons for Taxonomies 2.0.4
When this plugin is active with ACF Quick Edit Fields, when I click quick edit under a term, the term visually disappears.
https://github.com/mcguffin/acf-quickedit-fields/issues/81
mcguffin’s reply to me:
https://github.com/mcguffin/acf-quickedit-fields/issues/81#issuecomment-541347066
Hey.
Love your plugin, works amazingly well.
Although as it stands, it doesn’t seem to support gutenberg taxonomy selection as it still shows as checkboxes and not radio.
When attempting to quick edit
any taxonomy, whether it’s to be targeted or not by the plugin, the TR that contains the term disappears and editable field areas never appear on screen. The only way I can edit a term is by deactivating the plugin.
Anyone else have this problem? If so, how did you fix this?
]]>ACF can’t determine what Field Group to display on term change. A right Field Group show up only after creating/updating a post.
]]>I upgraded to 2.0 from 1.8.3 and there’s duplicate metaboxes of any taxonomies using this plugin, when I downgrade it goes back. When 2.0 is installed one set of metaboxes doesn’t work. I’m in the latest WordPress install.
]]>Is there a way to set the default term so that is shows selected? (maybe via a filter ?)
]]>Hello,
first of all, thank you for a nice plugin.
I found that there is a compatibility issue with NextGen plugin.
If Radio Buttons for Taxonomies is installed, in admin part the possibility “Set NextGen Feature Image” disappears. If I disable Radio Buttons plugin, this possibility returns.
I’m using WordPress 5.2, last version NextGen plugin 3.2.2, Radio Buttons for Taxonomy 2.0.0.
Radio Buttons are enabled only for my custom taxonomy.
If you could help me, it would be nice.
Alexandre
]]>Version 2.0.0 of this plugin calls the function use_block_editor_for_post_type
, which was introduced in WP 5.0. It causes a fatal error in WP 4.
Hi there,
I would like to add our “not public” taxonomies and I did add in your code:
$args['public'] = false;
$private = get_taxonomies( $args, 'objects' );
$taxonomies = apply_filters( 'radio_buttons_for_taxonomies_taxonomies', array_merge( $defaults, $custom, $private ) );
Is there a way to hook your code, or is it possible to add a filter to do that?
Thank you
]]>I would like to ask if its possible to see the selected Item on top (like with default taxonomy boxes).
Reason for it, I have up to 2000 taxonomy categories and would like to see if I have chosen one without having to scroll.
Hello,
I followed the instructions of the FAQ:
add_filter( "radio_buttons_for_taxonomies_no_term_{$taxonomy}", "__return_FALSE" );
But it does not work:
add_filter( 'radio_buttons_for_taxonomies_no_term_flash_news_category', '__return_FALSE' );
The name of the taxonomy is: “flash_news_category”.
]]>Hi @helgatheviking,
great plugin!
I was wondering whether you could improve the plugin by removing the options page (options-general.php?page=radio-buttons-for-taxonomies
) and instead add a field to each taxonomy (edit-tags.php?taxonomy=foobar
) to toggle the radio buttons.
This would help reduce the amount of options pages/menu items a medium sized WordPress project backend has.
Every plugin should remove it’s options when it gets uninstall so the setting Completely remove options on plugin removal
would not be needed.
What do you think? Thanks!
]]>