GeneratePress: Choose the Post Meta Shown Under Titles
Sets which details appear under post titles in GeneratePress (date, author, categories, comments) in the order you want.
Opens WPIDE on
Code
// Items under the title, in order.
$wpide_gp_header_meta = array( 'date', 'categories' );
add_filter( 'generate_header_entry_meta_items', function () use ( $wpide_gp_header_meta ) {
return $wpide_gp_header_meta;
} );
Notes
Available items: date, author, categories, tags, comments-link. Remove an item to hide it.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.