Tag Info

New answers tagged

0

1.Go to Dashboard > Settings > Media 2.Uncheck Crop thumbnail to exact dimensions (normally thumbnails are proportional) 3.Enter 0 for all input (0 for all size) 4.Add these to your functions.php // Enable support for Post Thumbnails, and declare sizes. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 400, 400, array("center","center") ); ...


0

The theme you are using crops uploaded pictures, but there is always a version of the picture which keeps the original full size. Modify the code that render the picture that it will use the size parameter. Eg: Use: wp_get_attachment_image: echo wp_get_attachment_image( $attachment->ID, 'full' ); Or: display post_thumbnail: echo get_the_post_thumbnail( ...


0

There's one nasty bug in the solution above. The solution works as a charm for new images, but for old images, you should never compare to $upload_dir['path'] because that's the current upload folder of the current month. Replace the following: //$large_image_location = $upload_dir['path'] . '/'.$image_data['sizes']['large']['file']; $large_image_location ...



Top 50 recent answers are included