The issue is that the text "Page Array" is displaying in the title bar instead of what was previously there, which was just a "|" separator.

I'm trying to puzzle out why this issue appeared...it came up as I was doing some maintenance work, updating some Wordpress REST API calls to the current syntax...but I can't trace this back to anything I changed.

Has anyone experienced this issue, or do you have suggestions about how to go about debugging it, or override it?

This theme was built using the Sage starter theme.

Any advice is much appreciated. This post has some information but I could track down a function that was causing the issue: https://wordpress.org/support/topic/home-page-title-displays-title-tagline-and-the-words-page-array/

  • 1
    Use this please $hook_name = 'wp_title'; global $wp_filter; var_dump( $wp_filter[$hook_name] ); to get a list of functions that are modifying the title, given that you are using wp_title() to output the title.
    – David Lee
    Commented Feb 13, 2017 at 5:26

1 Answer 1


There are many ways to set page title in wordpress.

1) In admin area go to settings >> General Settings. Set "Site Title" field and "Tagline" field values.

2) You can set your page title using wp_title() function to set the title of your page.

Using this function you can change your page title based on your page.

3) For SEO purpose you can use All in One SEO plugin which allows you to set page title and meta data for each and every page.

4) Also, You can use following jQuery code to remove "page array" string from your page title at the time of page load.

  jQuery(document).ready(function () {
    var title = jQuery(this).attr('title');

    if(title.contains("– Page Array")){
            var title = title.replace("– Page Array", "");
            document.title = title;
  • Thank you - reactivating Yoast SEO did the trick. Not sure where the "page array" was coming from.
    – explorier
    Commented Feb 21, 2017 at 23:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.