Image editing no longer works after moving to a new server

As discussed in comments this was because the new site was missing both of the supported image editing tools, GD and ImageMagick, as PHP modules. (Either one will work – you don’t need both.) The ‘Edit Image’ button appears if at least one of the installed tools supports the current file type. You can check … Read more

wp_get_attachment_image with custom size not rendering possible 2x srcset image

It appears the problem was that image size variants were being capped by the max_srcset_image_width property that can be raised with the following: add_filter( ‘max_srcset_image_width’, ‘setSrcsetMaximumWidth’, 10, 2 ); function setSrcsetMaximumWidth( $max_srcset_image_width, $sizes_array ) { return 3200; } I was never aware of this before and have no idea why I never ran into this.

How to disable trackbacks and pings on Images?

Those are attachments, all items in the media library are represented as posts of type attachment in the database, that’s how WordPress knows which images/media you have and how it displays them. The media library isn’t a file/folder viewer, and this is why copying an uploads folder or putting files in there manually won’t fill … Read more

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