HTTP/2 301
server: nginx
date: Sun, 12 Oct 2025 02:42:14 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/functions/get_the_archive_description/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
HTTP/2 200
server: nginx
date: Sun, 12 Oct 2025 02:42:15 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
get_the_archive_description() – Function | Developer.WordPress.org
WordPress Developer Resources
get_the_archive_description()
get_the_archive_description(): string
Retrieves the description for an author, post type, or term archive.
string Archive description.
function get_the_archive_description() {
if ( is_author() ) {
$description = get_the_author_meta( 'description' );
} elseif ( is_post_type_archive() ) {
$description = get_the_post_type_description();
} else {
$description = term_description();
}
/**
* Filters the archive description.
*
* @since 4.1.0
*
* @param string $description Archive description to be displayed.
*/
return apply_filters( 'get_the_archive_description', $description );
}
View all references View on Trac View on GitHub
Version | Description |
---|
4.9.0 | Added support for post type archives. |
4.7.0 | Added support for author archives. |
4.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.