Converting Attachment to Images?

Although it shouldn’t change based on your theme, this may be an issue caused by how this new theme handles images. As of WordPress 3.5, when you add a media object such as an image, there’s a sidebar that appears on the right. Underneath the “Attachment Details” (preview, title, caption, etc.) there’s a section called … Read more

Change code to display image attachment page

As pointed in the other answer, you should not have prettyPhoto part The link should be changed to utilize the function get_attachment_link Basically change this line in your code $link = ‘<a href=”‘.get_attachment_link($id).'”>’.wp_get_attachment_image($id, $size, false).'</a>’;

Rename attachments during upload no matter what filetype

Simply decide this on what data you got for your file (I use $file instead of $arr as argument, as it’s easier to understand later). if ( ‘image’ == array_shift( explode( “https://wordpress.stackexchange.com/”, $file[‘type’] ) ) ) // do wonderful things You can always simply look into what you got with adding the following line to … Read more

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