WP_Query::is_archive() – Is the query for an existing archive page?

You appear to be a bot. Output may be restricted

Description

Is the query for an existing archive page?

Archive pages include category, tag, author, date, custom post type, and custom taxonomy based archives.

Usage

$bool = WP_Query::is_archive();

Parameters

Returns

bool Whether the query is for an existing archive page.

Source

File name: wordpress/wp-includes/class-wp-query.php
Lines:

1 to 3 of 3
  public function is_archive() {
    return (bool) $this->WP_Query::is_archive;
  }
 

 View on GitHub View on Trac