using PHP code into WordPress widget

Sometime we need to insert PHP code into Wordpress text widget but by default, Wordpress ignore PHP code into widget. People use plugin for getting this but we can achieve it by using below given code into theme’s function.php.

Read More

Most commented posts

In wordpress blog, wordpress provide the option to comment on the post and that would be posted on the blog after admin approval. Many of us will be using any number of plugins or the database query that’s been doing the rounds recently to display your most commented posts. But we can achieve it simply by using Wordpress’s query_posts or WP_query().

Read More

Page Not Found Except Home Page Error

WordPress is a powerful CMS. Sometimes a slight tweak can make your website inaccessible. A common problem that most WordPress users face at some point is WordPress posts returning a Page Not Found Error. This may even occur after some updates in theme/plugins or settings. In this article we will show you how to deal with WordPress page not found except home page error.

Read More

How to Redirect URL

There are several ways to redirect a user from one URL to another. There might be several reasons to do this. I am describing different ways to redirect a URL or page quickly and seamlessly including redirect URL using JavaScript, use a meta tag, redirect using an htaccess file, redirection using PHP and finally redirect URL in WordPress.

Read More

Hide the Admin Bar in WordPress

WordPress automatically display an admin toolbar at the top of the page in frontend for logged in users.

This admin bar in WordPress is really an annoyance to me because it slightly disturb my theme design and I never want the toolbar for anything. I can hide it by using css and we can also do it in wordpress by using wordpress filter.

Read More

[ Page 5 of 5 ]