Blog

Block external TimThumb requests

After the TimThumb vulnerability from last year it happens often that "bad" bots are trying to hack your Wordpress site, even if you never used the TimThumb script in your Wordpress theme. These bots trying to find a TimThumb script in your theme directory structure...

Create a random post button for WordPress

If you like to get more page views per visitor on your WordPress site or blog you should try a random post button. People like to get surprised on what the next page will show them. The whole idea of StumbleUpon is based on random web pages, every time you click their...

Shorten text values without to break words

There are several situations were a shorter text version on your website is necessary: Post summaries for result pages or just for the page's META description (of course it's better to write a unique description). The regular PHP function "substr()" will shorten your...

How-to fix the hReview snippet for GD Star Ratings

Recently it becomes much easier to get your rating into the search results of Google. Using hReview rich snippet code in your blog post can raise the CTR in Google if the rating is visible. The GD Star Ratings plugin has already a function to show the snippet beside...

WP Post Ratings plugin: Show star images only

There are many star rating plugins for Wordpress available, while the plugin "GD Star Rating" has many functions, is the "WP Post Ratings" plugin much easier to use. There is one feature I like to see in the last mentioned plugin: A static result view! People should...

Show WordPress comments by category only

Recently I needed a widget or plugin which is able to show only the comments from th current category. It seems that this kind of widget is not very common, so I checked the code from several themes I used in the past and also some plugin. The function below should do...