Title: get_the_archive_title
Published: December 18, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘get_the_archive_title’, string $title, string $original_title, string $prefix )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#user-contributed-notes)

Filters the archive title.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#parameters)󠁿

 `$title`string

Archive title to be displayed.

`$original_title`string

Archive title without prefix.

`$prefix`string

Archive title prefix.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/general-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/general-template.php#L2018)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/general-template.php#L2018-L2018)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#related)󠁿

| Used by | Description | 
| [get_the_archive_title()](https://developer.wordpress.org/reference/functions/get_the_archive_title/)`wp-includes/general-template.php` |

Retrieves the archive title based on the queried object.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Added the `$prefix` and `$original_title` parameters. | 
| [4.1.0](https://developer.wordpress.org/reference/since/4.1.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 3 content](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#comment-content-1808)
 2.    [WebMan Design | Oliver Juhas](https://profiles.wordpress.org/webmandesign/)
     [  10 years ago  ](https://developer.wordpress.org/reference/hooks/get_the_archive_title/#comment-1808)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title%2F%23comment-1808)
     Vote results for this note: 5[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title%2F%23comment-1808)
 4.  **TIP: Using the hook to get rid of archive “label”:**
 5.  If you would like to get rid of the _“Category:”_, _“Tag:”_, _“Author:”_, _“Archives:”_
     and _“Other taxonomy name:”_ in the archive title, use this little function in
     your (child) theme `functions.php` file:
 6.      ```php
         function my_theme_archive_title( $title ) {
         	if ( is_category() ) {
         		$title = single_cat_title( '', false );
         	} elseif ( is_tag() ) {
         		$title = single_tag_title( '', false );
         	} elseif ( is_author() ) {
         		$title = '<span class="vcard">' . get_the_author() . '</span>';
         	} elseif ( is_post_type_archive() ) {
         		$title = post_type_archive_title( '', false );
         	} elseif ( is_tax() ) {
         		$title = single_term_title( '', false );
         	}
     
         	return $title;
         }
     
         add_filter( 'get_the_archive_title', 'my_theme_archive_title' );
         ```
     
 7.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title%2F%3Freplytocom%3D1808%23feedback-editor-1808)
 8.   [Skip to note 4 content](https://developer.wordpress.org/reference/hooks/get_the_archive_title/?output_format=md#comment-content-5626)
 9.    [guardiancrescent](https://profiles.wordpress.org/guardiancrescent/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/get_the_archive_title/#comment-5626)
 10. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title%2F%23comment-5626)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title%2F%23comment-5626)
 11. Since 5.5.0 the nicer approach to removing prefixes would be:
 12.     ```php
         function wpdocs_remove_archive_title_prefixes( $title, $original_title ) { 
         	return $original_title; 
         } 
         add_filter( 'get_the_archive_title', 'wpdocs_remove_archive_title_prefixes', 10, 2 );
         ```
     
 13.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title%2F%3Freplytocom%3D5626%23feedback-editor-5626)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_the_archive_title%2F)
before being able to contribute a note or feedback.