By default, built-in WordPress galleries use the size “full” for the image but in some cases it’s better set a different size. Here is an easy to use code snippet to set the default image size in your galleries.
Would you like to be able to automatically add the author gravatar to each post? It is really easy to do with this handy recipe.
Would you like to crop your thumbnails instead of scaling them? If yes, I have a very handy snippet for you today. Just read on and enjoy!
Since version 2.9, WordPress let you define a post thumbnail so you can embellish your post with an image. But there’s no way to define a default thumbnail to be used when no custom thumbnail is defined. Here is a cool recipe to define a default post thumbnail.
The well known jQuery plugin Lightbox is a very simple way to open images in fancy full-screen boxes. It is very easy to use, but you have to add a rel=”lightbox” attribute to each image you want to open in a lightbox. Here’s a cool code snippet to automatically add the rel=”lightbox” attribute to all images embedded in your posts.
When you upload images via WordPress image uploader and insert it into your posts, WordPress automatically include the image width and height attributes in the html <img> tag. But when using a responsible theme, this can cause lots of trouble. Here’s a quick recipe to get rid of those attributes.
By default, WordPress compress uploaded jpg images. This is a good thing because it makes the files smaller, but in some case, image quality can be more important. If you need to prevent WordPress to compress your images, simply apply this simple tip.
Every blogger like to put images in posts. After all, an image is worth a thousand words, isn’t it? But what if the images are too big, and break your blog layout? In this recipe, I’ll show a very easy but super cool tip to avoid this problem.
When using images in your posts, you not always want them to be shown on your blog homepage. In theses cases, here is a little piece of code that prevent any images from the post to be displayed on the homepage.
Ever wished you could be able to upload your images, and didn’t care about manually resizing it? If yes, here is a real time saver: A php script that can resize your images “on the fly”.