Skip to content

Test for is_home for noindex robots #257

@spelkey-ucd

Description

@spelkey-ucd

is_archive does not return true for the news posts archive page, so should also test for is_home, which is confusingly named...

https://developer.wordpress.org/reference/functions/is_home/

This would apply to:

Since these pages do not have a canonical link tag, Google will index any query parameter permutation separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions