Codex tools: Log in
Contents |
Добавляет шаблон footer.php из директориии, в которой расположены шаблоны текущей темы. Если задан параметр name, то будет добавлен шаблон подвала с именем footer-{name}.php.
Если текущая тема не содержит шаблон footer.php, то будет добавлен подвал из дефолтной темы wp-includes/theme-compat/footer.php.
<?php get_footer( $name ); ?>
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() находится в файле wp-includes/general-template.php.
Include Tags: get_header(), get_footer(), get_sidebar(), get_template_part(), get_search_form(), comments_template()