In function set_taxonomies of radio-taxonomy, in the version of wordpress I’m using, you cannot compare the default boolian, “show_ui” with the string “radio” in get_taxonomies.
I have a quick and (dirty?) fix:
//OLD:
//$this->taxonomies = get_taxonomies(array(‘show_ui’ => ‘radio’), ‘objects’);
//NEW:
//updated becuase $temp_tax->show_ui == ‘radio’ evaluates to true even if show_ui == 1, becuase show_ui is a bool!!!!
$this->taxonomies = array();
$temp_taxonomies = get_taxonomies(array(‘show_ui’ => ‘radio’), ‘objects’);
foreach ($temp_taxonomies as $temp_tax) {
if ( $temp_tax->show_ui.” == ‘radio’) { //covert show_ui to string! it is a bool!
$this->taxonomies[] = $temp_tax;
}
}
Let me know if you use this or have other ideas.
]]>when I activate the plugin, it changes all checkboxes to radio buttons, even for default post categories where I haven’t changed show_ui to radio
]]>Hi
here is the taxonomy registration code of my plugin:
[Code moderated as per the Forum Rules. Please use the pastebin]
it’s not showing radio buttons
]]>not really broken but is there a way to not display the select/deselect all button?
]]>The Plug in Radio taxonomies doesnt seem to work on custom post types. Or at least not for me. I have replaced the show_ui with radio and even tryed to replace the true with radio but I dont get any radio buttons.. am i missing something or is this plug in not designed for custom post types? If you could let me know how to set the custom post type taxonomy UI to radio buttons I would be very thankfull.
]]>