Skip to main content

Ivan Teoh

Something personal yet public

WordPress Theme Development 9 - 404 Template

Most of the basic theme template file are explained. We do felt error 404 page, 404.php, is quite important. There is always a chance that user might click on the page that does not exist. If it does happen, proper error 404 page as following will handle it.

59-404.php (Source)

 * @package WordPress
 * @subpackage Your_Theme
<?php get_header(); ?>

<h2><?php _e('Error 404 - Not Found'); ?></h2>
<?php get_search_form(); ?>

<?php get_footer(); ?>


Comments powered by Disqus