$_FILES empty on created_{taxonomy} and create_{taxonomy} yet is is not on edit_{taxonomy}

This is just a half answer, but I wanted to share my findings. When adding a new term via the Add Term screen /wp-admin/edit-tags.php?taxonomy=work_type&post_type=work, AJAX is being used and it is not handling the $_FILES array, so it is empty. If you disable JS in your browser temporarily, then reload the page, add a new … Read more

How to Filter custom post type by taxonomy?

I believe you can add the following to the theme’s functions.php & visit /courses/?topics=foo,bar to get the results you’re looking for: <?php /** * Custom search-query with taxonomy filter */ function wpse373353_search_query( $wp_query ) { // exit early if this isn’t that main loop on the front-end of the site if ( ! $wp_query->is_main_query() || … Read more

Don’t know how to show custom taxonomies from a custom post_type

Ok, i did work for you: First, I registered custom post type and taxonomy: add_action(‘init’, ‘my_init’); add_action(‘admin_init’, ‘my_admin_init’); function my_admin_init() { $role = get_role( ‘administrator’ ); $role->add_cap( ‘edit_event’ ); $role->add_cap( ‘read_event’ ); $role->add_cap( ‘delete_event’ ); $role->add_cap( ‘edit_events’ ); $role->add_cap( ‘read_events’ ); $role->add_cap( ‘delete_events’ ); $role->add_cap( ‘edit_others_events’ ); $role->add_cap( ‘publish_events’ ); $role->add_cap( ‘read_private_events’ ); $role->add_cap( ‘delete_private_events’ … Read more