# 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.

- Type: PHP
- Runs: Frontend only
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: generatepress, posts, meta
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/generatepress-post-meta-items/

## Code

```php
// 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 use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "GeneratePress: Choose the Post Meta Shown Under Titles" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
