I added the snippet by looking at the post “generate_header_entry_meta_items”.
The desired category name appears in “header”, but the category name still appears in “footer”. How can I hide the category name shown in “footer”? Turning off category exposure in “Layout-Blog” disables the category name for “header”.
(The sentence may be awkward because I used Google Translate.)