Languages: English • 日本語 Македонски • Русский • (Add your language)
Includes the footer.php template file from your current theme's directory. if a name is specified then a specialised footer footer-{name}.php will be included.
If the theme contains no footer.php file then the footer from the default theme wp-includes/theme-compat/footer.php
will be included.
<?php get_footer( $name ); ?>
None.
The following code is a simple example of a template for an "HTTP 404: Not Found" error (which you could include in your Theme as 404.php).
<?php get_header(); ?> <h2>Error 404 - Not Found</h2> <?php get_sidebar(); ?> <?php get_footer(); ?>
Different footer for different pages.
<?php if ( is_home() ) : get_footer( 'home' ); elseif ( is_404() ) : get_footer( '404' ); else : get_footer(); endif; ?>
The file names for the home and 404 footers should be footer-home.php and footer-404.php respectively.
get_footer() is located in wp-includes/general-template.php
.