Title: Programmatically alter pagination title
Last modified: May 23, 2023

---

# Programmatically alter pagination title

 *  Resolved [James Morton](https://wordpress.org/support/users/stylishjm/)
 * (@stylishjm)
 * [3 years ago](https://wordpress.org/support/topic/programmatically-alter-pagination-title/)
 * Hello, I already make use of the the_seo_framework_title_from_generation hook
   to display translated page/post titles & content and it works great (it’s a semi-
   complex setup where I had coded it to pick up a language query variable and serve
   content for a specific language from custom fields rather than creating a separate
   page for each language), but I now need to translate the “Page X” in the title
   when visiting a paginated page.
 * For example, I have a page that contains a custom loop, and when visiting page
   2 of the French version, the <title> tag displays “Exemple de publication de 
   type de message personnalisé – **_Page 2_** – Test Site”.
 * Can you please advise how I can alter the “Page” text please? I’d assume it would
   sit somewhere within the existing filter that I am using for the the_seo_framework_title_from_generation
   hook?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fprogrammatically-alter-pagination-title%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [James Morton](https://wordpress.org/support/users/stylishjm/)
 * (@stylishjm)
 * [3 years ago](https://wordpress.org/support/topic/programmatically-alter-pagination-title/#post-16760889)
 * Closing this, having looked in generate-title.class.php, it appears this can 
   be handled with translations.
 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [3 years ago](https://wordpress.org/support/topic/programmatically-alter-pagination-title/#post-16762722)
 * Hello!
 * Yes, `Page %s` uses the ‘default’ translation — which means it takes the translation
   provided for WordPress itself.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Programmatically alter pagination title’ is closed to new replies.

 * ![](https://ps.w.org/autodescription/assets/icon.svg?rev=3000376)
 * [The SEO Framework – Fast, Automated, Effortless.](https://wordpress.org/plugins/autodescription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autodescription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autodescription/)
 * [Active Topics](https://wordpress.org/support/plugin/autodescription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autodescription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autodescription/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [pagination](https://wordpress.org/support/topic-tag/pagination/)
 * [title](https://wordpress.org/support/topic-tag/title/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/programmatically-alter-pagination-title/#post-16762722)
 * Status: resolved