Post Pic

WordPress tip: Get rid of unused shortcodes

1 comment

WordPress shortcodes are great, but they have a bad point: When you decide to stop using them, their code stay in your post content. Here is a fix: A simple SQL query to run on your database to get rid of unused shortcodes.

Post Pic

WordPress tip: Get rid of unused post revisions

3 comments

WordPress have a feature which saves various copies of your posts in order to allow you to compare revisions or restore an older version of your posts. This is very useful, but it also take a lot of space in your database. Here is a very handy SQL query that will instantly delete all posts revisions as well as meta associated with it.

Post Pic

WordPress plugin: Protect your blog from malicious URL Requests

15 comments

Due to its popularity, WordPress is often the target of hackers. Today, let’s see how we can build a plugin that will check for malicious URL requests (Long request strings, presence of either “eval” and “base64″ php functions, etc.) and use it to protect our blog.

Post Pic

WordPress tip: Create a PDF viewer shortcode

16 comments

If you’re using PDF files on your WordPress blog, it could be very cool to give your users the chance to open them using Google Docs. The following recipe will show you how you can do that.

Post Pic

WordPress trick: Change theme programatically

8 comments

In WordPress, changing themes are easy. But what when you have to change a theme programmatically? Just read the following recipe to find out. It’s a lot easier than you may think!

Post Pic

How to display custom post types on your WordPress blog homepage

6 comments

WordPress 3.0 will allow you to create custom post types, so what about being able to list those custom types on your blog homepage? This very useful piece of code will show you how you can do it.

Post Pic

How to remove “private” and “protected” from the post title

6 comments

Each time you define a specific post as being private or password-protected, WordPress automatically add “Private” or “Protected” to your blog post title. If you don’t want it, nothing simpler: Just apply this great hack.

Page 1 of 4112345678»...Last »