• Resolved James Morton

    (@stylishjm)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter James Morton

    (@stylishjm)

    Closing this, having looked in generate-title.class.php, it appears this can be handled with translations.

    Plugin Author Sybre Waaijer

    (@cybr)

    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.