WordPress.org

Ready to get started?Download WordPress

Codex

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

Function Reference/get 404 template

Contents

Description

Retrieve path of 404 template in current or parent template.

Usage

<?php get_404_template(); ?>

Parameters

None.

Return Values

(string) 
Returns result from get_query_template('404').

Examples

Notes

Change Log

Since: 1.5.0

Source File

get_404_template() is located in wp-includes/theme.php (if v3.x wp-includes/template.php).

Related

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