Example 1 — Archive page heading
Use it as the page title in archive-book.php.
<h1><?php post_type_archive_title(); ?></h1> How It Works
- The current page is the archive of the
bookpost type. - The function prints the plural label, "Books".
- It goes inside the
h1.

