6 awesome WordPress hacks that will save your life

A few days ago, I decided to start a new blog which focus on WordPress recipes. To celebrate this newcommer, I have compiled a list of the 6 best WordPress recipes I have published at WpRecipes.

Get rid of curly quotes

If you publish code on your blog, or even copied code from a blog, you can say that curly quotes are a serious source of trouble on WordPress blogs. Here’s a very nice hack which will remove curly quotes from your posts. Your readers will thank you!

How to display the total number of posts published

Ever wanted to be able to display how many posts you wrote since your blog is online? Here’s a very cool piece of code to display the total ammount of post published.

How to batch deleting spam comments on a WordPress blog?

Have you ever loggued in to your WordPress Dashboard, and see that you have something like 200 spam comments? Here’s a very nice method to delete all spam easily, instead of having to delete spam page per page.

Add a “edit” link on each post

Sometimes, you read one of your blog posts and you see a typo or an error. Sure, you got to correct it. But who said you must open your WordPress dashboard, go to “Manage” and then edit the post? In this recipe, I’m going to show you how to add a button to allow the admin to directly edit the post.

Protect your WordPress blog from hotlinking

Hotlinking is the use of an image from one site into a web page belonging to another site. Many bloggers are hotlinked, and have their bandwidth used on another websites. Here’s a solution to protect your WordPress blog from hotlinking.

Restrict page view to authenticated users only

WordPress allows you to make a post private, but what about static pages? Here’s a quick, clear and concise recipe to create a private page template.

And you, any good recipe you’d like to share? Leave us a comment!