# Remove rel="next" and rel="prev" Links From Rank Math

> Stops Rank Math from adding rel next and prev link tags on paginated archives and multi-page posts.

- Type: PHP
- Runs: Frontend only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: rank-math, pagination, cleanup
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/rankmath-remove-adjacent-links/

## Code

```php
add_filter( 'rank_math/frontend/disable_adjacent_rel_links', '__return_true' );
```

## Notes

Google no longer uses these links; Bing still reads them.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove rel="next" and rel="prev" Links From Rank Math" 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/
