Adding a querystring to an image URL when clicking ‘insert into post’?

You need to use the filter image_send_to_editor. add_filter(‘image_send_to_editor’, ‘wpse_62869_img_wrapper’, 20, 8); function wpse_62869_img_wrapper( $html, $id, $caption, $title, $align, $url, $size, $alt ) { return $html; } These are the values of a test insert and you can use them to build your own $html response. html | <a href=”http://wp34.dev/wp-content/uploads/2012/11/escritorio.jpg”><img src=”http://wp34.dev/wp-content/uploads/2012/11/escritorio-224×300.jpg” alt=”Alt text for the image” … Read more

Show Post Excerpt in Image Attachement

First refer to this answer by @MikeSchinkel. You can put the function in functions.php Next, just add echo robins_get_the_excerpt($post->post_parent); below the image attachment. Like this : <div class=”caption”> <?php echo robins_get_the_excerpt($post->post_parent) ?> </div> Please note that this code is untested.

Actions according to image type and size

That function looks like the kind of thing that would slow down a site. 🙂 The first thing I’d recommend is that you not run that function on the front end. Run it when the image is uploaded and store the result in the database using wp_update_attachment_metadata. You can then retrieve the data with wp_get_attachment_metadata. … Read more

Get author ID with attachment ID

Back in the day I wrote a function to check for that (you can put it in functions.php and call it from your page): public function check_if_user_is_author($user_id, $post_id) { global $wpdb; $res = $wpdb->get_results($wpdb->prepare(“SELECT * FROM ” . $wpdb->posts .” WHERE ID = %d AND post_author = %d LIMIT 1″, $post_id, $user_id)); if(isset($res) && count($res) … Read more

Images not showing after moving site (but path id OK)

I’ll post the answer to my problem, which I got thanks to the links provided by Jesse. What I did was to delete the index.html and .touch files form the cache folder where the tinthumb.php file is located. After that it all worked perfectly!

Change image size when inserting Media?

Scaled images are generated at the time they are uploaded, not when inserted. You can choose the sizes that WordPress automatically generates for images that are uploaded in your Dashboard Settings under Settings > Media. Once an image has been inserted using Add Media, you can click the image and then click the edit image … Read more

How to Change WordPress Image URLs

you can either use a Plugin for redirection: http://wordpress.org/plugins/redirection/ (would be like editing the .htaccess) OR use a Plugin to edit the wordpress database (make sure to do a database backup first) http://wordpress.org/plugins/search-and-replace/