# Astra: Remove Previous/Next Links Under Posts

> Removes the previous and next post links that the Astra theme adds below single posts, for a cleaner end of article or when you show related posts instead.

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

## Code

```php
add_filter( 'astra_single_post_navigation_enabled', function ( $enabled ) {
    return defined( 'ASTRA_THEME_VERSION' ) ? false : $enabled;
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Astra: 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/
