Any gallery plugins that allow commenting on single images?

Usually your WordPress theme will have an “attachments.php” page that would have a “single view” of the image in question. For an example: http://twentyelevenphoto.wordpress.com/2011/05/25/an-image/mcm_5276/ That gives you a “single” view of your image as well as comments. To test to see if your site has this, create a gallery and make sure to check “Attachment … Read more

Gallery – custom html for inserting images

In cleaner-gallery.php make changes to the cleaner_gallery_plugin_gallery_image function that starts on line 122 and ends on line 151. What we are doing is replacing href with data-href in the two instances that output the html with the image attributes. function cleaner_gallery_plugin_gallery_image( $image, $id, $attr, $instance ) { /* If the image should link to nothing, … Read more

How to set path to the image instead of alt in media.php?

This should do the trick add_filter(‘wp_get_attachment_image_attributes’, ‘change_alt_image’, 10, 2); function change_alt_image($attr, $attachment) { $data_img = wp_get_attachment_image_src($attachment->ID, ‘original’, false); $attr[‘alt’] = esc_url($data_img[0]); return $attr; }

Plug-in that shows x number thumbnails from another post

I don’t think so, but you could use get_children and get the attachment(s) of those posts: $attachments = get_children(array( ‘post_parent’ => $post->ID, // <- source post ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘post_date’, ‘orderby’ => ‘DESC’, ‘numberposts’ => 5, // the number )); Then get the image URLs: $size=”post-thumbnail”; // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)