Currently, the taxonomy field only supports public taxonomies, with the explicit exception of post_format.
I replaced /core/fields/taxonomy.php lines 284 through 295 with:
$taxonomies = get_taxonomies( '', 'objects' );
foreach($taxonomies as $taxonomy)
{
$choices[ $taxonomy->name ] = $taxonomy->labels->name;
}
$taxonomies_to_unset = array( 'post_format', 'nav_menu', 'link_category' );
foreach($taxonomies_to_unset as $taxonomy)
{
unset($choices[$taxonomy]);
}
Would it be possible to get this included in ACF core? It would allow the taxonomy field to show all custom taxonomies, while omitting the native ones that would be bothersome.
Hi @timothy_h
Thanks for the code. The above looks good to me. I’ll add it to the to-do, run some tests and add it into the next version.
Thanks
E
Hi @timothy_h
Thanks again for the request. Just wanted to let you know this has made it into the core and will be released soon.
Thanks
E
Thanks, man! That’s great, glad to help.