Viewing 3 replies - 1 through 3 (of 3 total)
  • You mean you want to include the page information in the page title? That would be more of a question for the Yoast support forum: https://www.ads-software.com/support/plugin/wordpress-seo/

    Assuming your theme or some plugin isn’t overwriting this via a filter, you can change the archive title to append the page number. Add this code to your theme’s (preferably a child theme’s) functions.php file or a custom plugin:

    add_filter('get_the_archive_title', function($title) {
    if (is_paged()) {
    $title .= sprintf(
    ' – %s',
    number_format_i18n(absint(get_query_var('paged')))
    );
    }

    return $title;
    });

    If you’re referring to the title in the browser title bar, that’s most likely being overwritten by the Yoast plugin. WordPress outputs the page number there by default.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.