Custom Post Type – Archive page title

I’m wondering if I could make a custom Page title for my Custom Post Type Archive page? Right now I’m using:

<title><?php wp_title( '|', true, 'right' ); ?></title>

For my regular pages, it display what I want, but on my custom post type archive page it displays:

Custom Post Type Name Archive

Is it possible to add a custom page title for just that page?

4 Answers
4

You can use is_archive conditional code in your header.php to control the title

    <?php if(is_archive()): ?>
    <title>Archive page</title>
    <?php else: ?>
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <?php endif; ?>

Leave a Comment