# Noindex Paginated Archives With All in One SEO

> Adds noindex to page 2 and later of archives through All in One SEO's robots meta while keeping links followed.

- Type: PHP
- Runs: Frontend only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: aioseo, noindex, pagination
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/aioseo-noindex-paged-archives/

## Code

```php
add_filter( 'aioseo_robots_meta', function ( $attributes ) {
    if ( is_paged() && is_array( $attributes ) ) {
        $attributes['noindex'] = 'noindex';
        unset( $attributes['index'], $attributes['nofollow'] );
    }

    return $attributes;
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Noindex Paginated Archives With All in One SEO" 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/
