Hi there
I had the same issue so I did what you said. It worked but with some problems you maybe can help me with:
- The icons before the category name and tag name are not displayed (And I would like them to be)
- The categories and tags are still displayed at the bottom of the post / archive (and I wish they wont)
[img]https://i.imgur.com/nOHqCa9.jpg[/img]
These issues occur in both archive and post
Any idea how to fix this?
NOTES:
I added tags in your suggested code as I only need Categories and tags displayed. It is worth noting that if you keep the date and author in the code, category and tags wont show up if you decide not to activate date or author on the customized layout. So if you only want categories and tags displayed code should be:
add_filter( 'generate_header_entry_meta_items', function() {
return array(
'categories',
'tags',
);
} );
PS: I never learned PHP so if I make a mistake that can do harm to others Generatepress fellow users please correct me