Add filename to attachment page url

This doesn’t require a WordPress modification per se, but if you prefer to do it that way, here is a decent tutorial: http://shibashake.com/wordpress-theme/wordpress-page-redirect. Some people would, however, prefer to do this via the .htaccess file, here is a quick guide on how to do redirects that way: http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#red1.

All my inserted images gets a link to the full image even if it is already full size image

The following code will empty the Link URL field when Full Size button is clicked. And fill the same field with the File URL value when other buttons are clicked. Tested with WordPress 3.4.2. Drop the code in your theme’s functions.php file or create a simple plugin for it. add_action( ‘admin_head-media-upload-popup’, ‘wpse_41539_add_remove_image_url’ ); function wpse_41539_add_remove_image_url() … Read more