---
title: "Filter &#8220;page&#8221; dynamic variable"
url: "https://www.seopress.org/support/hooks/filter-page-dynamic-variable/"
lang: en-US
updated: 2021-09-29
hook_name: seopress_context_paged
required_version: 3.7.7
---

# Filter &#8220;page&#8221; dynamic variable

- **Hook name:** `seopress_context_paged`
- **Required version:** 3.7.7

```php
function sp_context_paged($html)
{
    if (is_paged() === true) {//display the "Page x of y" only on paginated archive pages, not the first one
        return $html;
    }
    return false;
}
add_filter('seopress_context_paged', 'sp_context_paged');
```

Source: [https://gist.github.com/wp-seopress/e18aec88d616771c6546e37c0ecc5944](https://gist.github.com/wp-seopress/e18aec88d616771c6546e37c0ecc5944)



