I am Hack Sparrow
Captain of the Internets.

Archive for Wordpress

WordPress hacked – getting forwarded to distributioncorporate.ru – Solution

So you just noticed or got told that your website is redirecting its users to distributioncorporate.ru. You are not alone, it is a new hack affecting lots of Wordpress users lately. The vulnerability lies in outdated versions of the popular TimThumb library. If you got hacked, you have a plugin or theme which has an outdated TimThumb lib. Disclaimer: fo ...

WordPress: How to customize the “Read More” link in Excerpt

When you do the_excerpt(), Wordpress ends the excerpt with a "[...]". Depending on your taste, you may or may not like the default more link in excerpts. I certainly don't like it, and here is what I used to change the Read More link in excerpts: [code] function custom_excerpt_more() { global $post; return '<a href="'. get_permalink($post->ID) . '">' . ' ... &raquo;' . '</a>'; } add_filter('excerpt_more' ...

WordPress: Multiple Galleries in one Post

The Wordpress gallery shortcode does an excellent job of creating a gallery out of uploaded images for a post. But what do you do if you want to break up the uploaded images into multiple galleries in the same post? It is easy - all you have to do is use the include parameter of the gallery shortcode. First make a list of the ids of images you wanna put in your galleries, get them from Media ...

WordPress: How to remove photo from gallery without deleting the image

Wordpress has a very nifty feature - it creates a gallery out of all the images uploaded for a particular post. The gallery can be included in the post with the use of the gallery shortcode. By default, the gallery will include all the images that were uploaded for the post. Now what do you do if you want to remove some photos from the gallery? You exclude them from the gallery by using the exclude para ...

WordPress: Image has failed to upload due to an error

When you try to upload an image in Wordpress you get this error: [code] Image has failed to upload due to an error Unable to create directory path. Is its parent directory writable by the server? [/code] So your images fails to upload. Maybe it was working earlier, but but now nothing succeeds in uploading. Most probably it is because of a bad configuration in Media Settings. To fix that go to Settings > Media > Uploading Files. For the Store uploads in this folder property, ...