# GeneratePress: Remove Previous/Next Links Under Posts

> Removes the previous and next post links from the end of single posts in GeneratePress, keeping categories and tags.

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

## Code

```php
add_filter( 'generate_footer_entry_meta_items', function ( $items ) {
    return array_values( array_diff( (array) $items, array( 'post-navigation' ) ) );
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "GeneratePress: Remove Previous/Next Links Under Posts" 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/
