We the WordPress users or internet users are so familiar with a message “404 Error” or “page not found” sometimes when we click any link. Technically it is said a “404 Error Page”. It sometimes plays the role like a end for a user because it may lead any visitor of the website leaving the site. But do not be disappointed because there are several ways to set your “Custom 404 Error Page”. If we can give users some good information or some directions on the 404 page then our visitors might be interested to stay at the site and keep surfing the site. For example we can show recent posts of the site, categories of the site, search box for searching anything could be some great ways to hold the visitor.
How you can do this?
This is simple and easy. First check if there is a 404 page in your theme by default. If not then create 404.php page. You are free to use any designs or styles and HTML you want at there but stick to the design of the site or the blog. If we can make it with our blog design then people will think this is a part also of our blog.
Assure that the 404 file has all the basic PHP codes into it. All you have to do is adding the content you like to into that file.
Here is the basic codes-
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Now here are some effective tags about Adding Tags You like Most:
Displaying Recent Posts:
<?php get_archives(‘postbypost’, ’17′, ‘custom’, ‘<li>’, ‘</li>’); ?>
Displaying Categories List:
<?php wp_list_cats(); ?>
Displaying Archives by Month or Any Other:
<?php wp_get_archives(‘type=monthly’); ?>
Note: This tag should not be used for an aged blog like 3 or4 years old.
So here is it brief but nice and simple. Do not try to follow others just see which one is the fittest for your site type.