This snippet adds the current page number to the page header title on paginated archives such as the blog, categories, tags and search results, for example “Blog – Page 2 of 5”.
It isn’t built into the theme because it can make titles look clunky, and WordPress and SEO plugins already add the page number to the browser title tag, which is what search engines use.
/**
* Display the current page number next to the page title.
*/
add_filter( 'wpex_title', function( $title ) {
if ( $title && is_paged() && ! is_singular() ) {
$title .= ' - {{paged}}';
}
return $title;
}, 20 );