WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get archive template

Description

Retrieve path of archive template in current or parent template.

Usage

<?php get_archive_template(); ?>

Parameters

None.

Return Values

(string) 
Returns result from get_query_template('archive')

Examples

Notes

Filters

  • Calls 'archive_template' filter on found path:
    apply_filters('archive_template', $template)

Change Log

Since: 1.5.0

Source File

get_archive_template() is located in wp-includes/template.php.

Related

See also index of Function Reference and index of Template Tags.