Press the button below to assign the default category to all posts that are not assigned to any categories.

queries. seconds.

get_results("SELECT ID FROM $wpdb->posts WHERE post_type = 'post'"); ?>

ID); if (empty($terms)) { printf(__("Post %d has no categories assigned.", 'assign-missing-categories'), $thispost->ID); wp_set_post_categories($thispost->ID, $default); _e( " Assigned default category.
", 'assign-missing-categories'); } else printf(__( "Post %d has a category assigned.
", 'assign-missing-categories'), $thispost->ID); flush(); } clean_term_cache($default, 'post_category', true); echo "
"; } // i18n load_plugin_textdomain( 'assign-missing-categories', '', plugin_dir_path(__FILE__) . '/languages' );