By default, WordPress compress jpg images when you upload them to your blog. This is useful because it saves bandwidth and loading time, but sometimes you may prefer to have full quality images (For example, if you’re a photographer using WordPress to showcase your work). Paste the code below into your functions.php file to remove… Continue reading Prevent automatic image compression
Tag: images
Get the image plugin
Usage: <?php get_the_image( array( ‘default_image’ => ‘http://mysite.com/wp-content/uploads/example.jpg’ ) ); ?> Parameters: $defaults = array( ‘meta_key’ => array( ‘Thumbnail’, ‘thumbnail’ ), ‘post_id’ => $post->ID, ‘attachment’ => true, ‘the_post_thumbnail’ => true, ‘size’ => ‘thumbnail’, ‘default_image’ => false, ‘order_of_image’ => 1, ‘link_to_post’ => true, ‘image_class’ => false, ‘image_scan’ => false, ‘width’ => false, ‘height’ => false, ‘format’ =>… Continue reading Get the image plugin