WordPress adds a lot of stuff through wp_head() hook included in most WordPress themes. Some of this stuff is useful, but some other isn’t. Here’s a quick recipe to clean up the wp_head() easily without using a plugin.
WordPress has a little tab in the top-right corner that, when clicked, drops down some contextual help. Here is a super useful function to hook different help text to different pages.
In WordPress 3.7, there’s a new and interesting feature which allow your blog to automatically upgrade when a new version is available. I think it’s really cool, but if you don’t like it for some reason, here’s a quick recipe to turn it off.
When building WordPress based websites, it can be very useful to know how to programmatically log in an user. Here is a reusable function to do it easily.
When creating a WordPress site for a non tech-savvy user, it can be very useful to be able to display a custom message on the post editor page. Here’s a very simple hook to do it.
By default, WordPress allows you to sort results of a query by one meta value, but what if you need to sort results by two meta values (For example date and time)? Here ‘s a working example.
Here is a very handy code snippet to redirect the user to a custom page after registration on your WordPress blog or website. Super useful for those using WP as a CMS!
Remember when I shown you how to get the first image from a post? Today, I’m going to let you know how you can easily grab the first link from the post content.
In WordPress, author profile are by default accessible using the url yoursite.com/author/name. But what if you want to use the term “profile” instead of “author” in the url? Here is a handy recipe to do so.
Would you like to be able to show a short intro of the author bio instead of his complete bio? Here’s a code snippet to make an excerpt of the bio, with a link to the author page, where you can show the full bio.