wp_list_categories exclude not working
I'm try to exclude a specific category from a list of categories that a custom post has (in this case 'Uncategorized' - ID: 1).
I've tried exclude
:
wp_list_categories([
'include' = wp_list_pluck(get_the_category(), 'term_id'),
'title_li' = '',
'exclude' = 1
]);
But it still appears. How can I make sure it never appears, even if a post is tagged 'Uncategorized'?
Topic exclude categories Wordpress
Category Web