' . esc_html__( 'Category: %1$s', 'ixn' ) ." />

Hidde certain category from post meta

2017-10-17 00:15:45

This is my code for showing categories on post meta:

$categories_list = get_the_category_list( esc_html__( ', ', 'ixn' ) );

printf( '' . esc_html__( 'Category: %1$s', 'ixn' ) . '', $categories_list );

('ixn' is the theme name)

Is there a simple way to hide a specific category, called "site" from the categories that appear on the post meta?

I have read these supposed solutions, but they may be overkill for what I need and don't fit well with my code as they don't use the get_the_category_list:

Hide a certain category name without removing it?