WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/is month

Description

Test to see if the page is a month based archive page.

Usage

<?php is_month(); ?>

Parameters

This tag does not accept any parameters.

Return Values

(boolean) 
True on success, false on failure.

Examples

<?php
if ( is_month() ) {
    // Do awesome.
}
?>

Notes

Change Log

Since: 1.5.0

Source File

is_month() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.