Example 1 — Detect a time archive
Print a message on time archives.
<?php if ( is_time() ) {
echo 'Posts from a specific time.';
} ?> How It Works
is_time()is true when an hour, minute, or second is in the query.- A daily archive is not a time archive.
- The message is printed only on time archives.

