Site logo

Archived topic

Not showing post category and post tag in single blog post

5 replies · Started by Chetan on November 15, 2022

Viewing posts 1–6 of 6

Why is it not showing categories and tags on single blog page even when I selected the option?

https://prnt.sc/DT7c30D5Mscv

Hi Chetan,

Can you link us to a single post?

I want it at the top.

You can try this PHP snippet, but it will still require custom CSS to style it:

add_filter( 'generate_header_entry_meta_items', function() {
	if (is_single()) {
    return array(
        'date',
        'tags',
        'categories',
    );
	}
} );

or

you can try using a block element - post meta template, it can be built without using CSS, but you need to install Generateblocks plugin:
https://wordpress.org/plugins/generateblocks/

This archived topic is closed to new replies.