Using file extensions in image titles

The PHP function pathinfo() will work to get the extension for files. If your theme is just using the attachment post title for its title, then loop through all post types of ‘attachment’, and/or post mime/type that contains ‘image’ and then use pathinfo to get the file extension and update the title based on that.

Display ajax preloader for large images within posts

How you said one option is to place a preloader while the image is loading. If you cannot touch so deep with JavaScript and PHP I have one simple sugestion which I think will work for you. <div class=”image-preloader”> <img src=”https://wordpress.stackexchange.com/questions/129186/yourimage.jpg” alt=”” /> </div> Create a wrapper (holder) around your image. With CSS put the … Read more

How do I get resized thumbnails?

Your example code is calling the full size image as you mention and resizing to the dimensions you feed into the array. I’ve answered this question before here, but the basic idea is that you’ll want to use add_image_size() in your functions.php to tell WordPress you’d like it to create a new image size when … Read more