Archived topic
Not showing post category and post tag in single blog post
5 replies · Started by Chetan on November 15, 2022
Why is it not showing categories and tags on single blog page even when I selected the option?
Hi Chetan,
Can you link us to a single post?
It is not showing on any single post.
https://www.turkishworld.org/will-suna-exit-from-yali-capkini-series-shocking-news/
Both categories and tags are showing, it's at the end of the post.
https://www.screencast.com/t/iXkq5H83cb
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/