Evite mostrar los enlaces no categorizados WordPress

// Prevent Displaying Uncategorized Links Add to Functions file

function remove_uncategorized_links( $categories ){

	foreach ( $categories as $cat_key => $category ){
		if( 1 == $category->term_id ){
			unset( $categories[ $cat_key ] );
		}
	}

	return $categories;
	
} add_filter('get_the_categories', 'remove_uncategorized_links', 1);
Tony Harris