Having 404 pages in our Wordpress blog is a pain in the back, this usually happens in Wordpress blog and the cause is vary probably because of the visitor write a wrong url address while trying to access our page or we accidentally or deliberately remove the page, thus the page no longer exist and 404 page appears to replace the removed pages.
And in this post, I will share the information to adorns your 404 pages to be visitor friendly by adding features. This feature will change the default look of 404 pages, actually you can put anything in your 404 pages even ads, but I’d rather to add something which have related to my blog like category, popular posts, most commented post and so on.
Here’s the trick, login to your WP dashboard and go to Theme editor and click 404 page (404.php). Let’s say you want to put “popular post”, “recent post” and “category” in your 404.php page, then add the following code to it:
<h2>Popular Posts</h2>
<ul>
<?php akpc_most_popular(); ?>
</ul>
<h2>Recent Posts</h2>
<ul>
<?php query_posts(’showposts=10′); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<li><a href=”<?php the_permalink() ?>”><?php the_title() ?></a></li>
<?php endwhile; endif; ?>
</ul>
<h2>Category</h2>
<ul>
<?php wp_list_cats(’&title_li=’); ?>
</ul>
(To display popular post in your 404 page you need “popularity contest plugin” by Alex king, download here, and to have recent post you need recent post plugin.)
And to see the example see my 404 page: Click here.
That’s the simplest way to adorn your 404 page, to retains visitors going away from your page. I hope this post useful to you, and see you in the next post in the Busby SEO Test Blog and happy new year and wish you all the best!
Related posts:




Story added to…
Your story was featured in WPscoop | Wordpress Social News and Bookmarking! Here is the link to vote it up and promote it: http://wpscoop.com/Wordpress-Tutorials/Adorn-404-Page-In-Wordpress-To-Retains-Visitor-From-Leaving-Our-Blog…
[...] from: Adorn 404 Page In Wordpress To Retains Visitor From Leaving Our Blog if(typeof(hyperweb_adcount)==”undefined”) hyperweb_adcount [...]
[...] from: Adorn 404 Page In Wordpress To Retains Visitor From Leaving Our Blog in Busby SEO [...]
[...] from: Adorn 404 Page In Wordpress To Retains Visitor From Leaving Our Blog in Busby SEO [...]
[...] from: Adorn 404 Page In Wordpress To Retains Visitor From Leaving Our Blog in Busby SEO Test. Share and [...]
[...] Di terjemahkan dari: Adorn 404 Page In Wordpress To Retains Visitor From Leaving Our Blog [...]
Keep up the great work
[Reply]
[...] Adorn 404 Page In WordPress To Retains Visitor From Leaving Our Blog in Busby SEO [...]
yo, rumahabi.com great name for site)))
[Reply]
[...] But you’re left without a choices to change it, because you don’t want your pages become 404 pages if you change them into more cute permalinks. No problem because there are number of plugins that [...]
[...] from: Adorn 404 Page In Wordpress To Retains Visitor From Leaving Our BlogAbout the [...]