That's a slick piece of code but fortunately this is no longer an issue for titles of paginated posts when running the Yoast plugin. The paginated pages say Page "#" of "total pages #".
Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Posts made by Brian-
-
RE: Pagination duplicate title and meta description